Yii Framework Forum: Yii 1.1 Validators Cheat Sheet - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Yii 1.1 Validators Cheat Sheet Rate Topic: ***** 1 Votes

#1 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 508
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 19 January 2010 - 02:20 PM

Hi,

I wonder why nobody else did write this earlier ;)

Best regards,
schmunk

PS: License: Public Domain

Attached File(s)


Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
3

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,754
  • Joined: 04-October 08
  • Location:DC, USA

Posted 19 January 2010 - 02:25 PM

Very nice! Thank you for sharing!

How about using zebra stripes to better separate different validators?
0

#3 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 2,680
  • Joined: 17-January 09
  • Location:Russia

Posted 19 January 2010 - 03:36 PM

Also it will be good to separate different validators. Maybe with horizontal lines?
0

#4 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 508
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 19 January 2010 - 05:30 PM

Hmmm, my upload quota of 500K is almost full ... that's not much these days ;)

So the "zebra" version with alternating backgrounds is here http://docs.phundame...0CheatSheet.pdf
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
1

#5 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,754
  • Joined: 04-October 08
  • Location:DC, USA

Posted 19 January 2010 - 10:03 PM

hmm.. I couldn't find the setting to adjust user attachment quota...

Can I put this file onto the document page for people to download? Thank you for nice job!
0

#6 User is offline   jonah 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 733
  • Joined: 27-November 08
  • Location:California (US)

Posted 20 January 2010 - 01:09 AM

This is very good. For the documentation page I think it would be great if we had an html version of this too
http://php-thoughts.cubedwater.com - my bloggings about Yii
0

#7 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,003
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 20 January 2010 - 02:44 AM

Cool, thanks Schmunk!
0

#8 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 508
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 20 January 2010 - 03:57 AM

View Postqiang, on 19 January 2010 - 10:03 PM, said:

hmm.. I couldn't find the setting to adjust user attachment quota...

Can I put this file onto the document page for people to download? Thank you for nice job!


@Qiang: For sure - put it on the docs page, I feel honored ;)
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
0

#9 User is offline   scythah 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 44
  • Joined: 20-April 09

Posted 20 January 2010 - 04:01 AM

Qiang, whereabouts is it being put? Also, where did that other Yii Cheat Sheet end up?
0

#10 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,003
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 20 January 2010 - 04:05 AM

View Postscythah, on 20 January 2010 - 04:01 AM, said:

Qiang, whereabouts is it being put? Also, where did that other Yii Cheat Sheet end up?


How about here http://www.yiiframework.com/doc/ ? ;)
0

#11 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 2,680
  • Joined: 17-January 09
  • Location:Russia

Posted 20 January 2010 - 06:10 AM

Still not perfect. Look at other cheatsheets out there. There are really friendly colors, fonts etc.
0

#12 User is offline   Munich 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 17-December 09
  • Location:Germany

Posted 20 January 2010 - 07:04 AM

Thanks! It will be very useful!
0

#13 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 508
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 20 January 2010 - 08:03 AM

View Postsamdark, on 20 January 2010 - 06:10 AM, said:

Still not perfect. Look at other cheatsheets out there. There are really friendly colors, fonts etc.


Here's the ODS File (OpenOffice Spreadsheet), feel free to colorize it.


Best regards,
schmunk

Quote

Il semble que la perfection soit atteinte non quand il n'y a plus rien à ajouter, mais quand il n'y a plus rien à retrancher.
Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.

- Antoine de Saint-Exupéry in Wind, Sand and Stars

:rolleyes:
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
0

#14 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 508
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 20 January 2010 - 08:09 AM

View Postjonah, on 20 January 2010 - 01:09 AM, said:

This is very good. For the documentation page I think it would be great if we had an html version of this too

@Qiang:
Yeah, it would be cool if you could include some special parsers to CApiCommand.
So cheatsheets could be generated from simple functions, maybe with nice jQuery add-ons ... just thinking loud.
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
0

#15 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 2,680
  • Joined: 17-January 09
  • Location:Russia

Posted 20 January 2010 - 08:29 AM

Thanks, will play with it.
0

#16 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,003
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 20 January 2010 - 08:35 AM

Would be nice to have a single set of cheat sheets. Samdark if you play with it, maybe you could also merge the other one we have and add some missing stuff?

E.g. i always have to look up how the arguments differ between CController::createUrl() and e.g. CHtml::link(). Both are not contained in the cheatsheet yet.
0

#17 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,754
  • Joined: 04-October 08
  • Location:DC, USA

Posted 20 January 2010 - 10:25 AM

Glad to see these efforts!
0

#18 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 2,680
  • Joined: 17-January 09
  • Location:Russia

Posted 20 January 2010 - 11:28 AM

Updated with colors and fonts: Attached File  yii_validators_cheatsheet.pdf (60.78K)
Number of downloads: 120
0

#19 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 508
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 20 January 2010 - 11:49 AM

View Postsamdark, on 20 January 2010 - 11:28 AM, said:

Updated with colors and fonts: Attachment yii_validators_cheatsheet.pdf


Nice!
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
0

#20 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,754
  • Joined: 04-October 08
  • Location:DC, USA

Posted 20 January 2010 - 12:52 PM

Thanks! I have added the file to the doc page.
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users