Re: CakePHP should support better validation rules definition

2012-01-11 Thread jeremyharris
It would be cool to see a plugin that did this. Or, feel free to post an 
RFC ticket on lighthouse. Like Thiago said, it would be great if you also 
backed it up with code :)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


CakePHP should support better validation rules definition

2012-01-10 Thread datgs
Hi all,

I think CakePHP should support for better way to define validation
rules. Like Yii::Model::rules() definition. There are many benefits
from it:

1/ Shorter rule definition ( we can group the same rule the same
definition)
2/ The rules' parameters are easier to be changed. (Sometime my rules
parameters are read from my database)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP should support better validation rules definition

2012-01-10 Thread Thiago Belem
Talking is cheap, show me the code! :-)

--
Thiago Belem,
Desenvolvedor WEB

Enviado do meu Android
Em 11/01/2012 02:40, datgs giangson...@gmail.com escreveu:

 Hi all,

 I think CakePHP should support for better way to define validation
 rules. Like Yii::Model::rules() definition. There are many benefits
 from it:

 1/ Shorter rule definition ( we can group the same rule the same
 definition)
 2/ The rules' parameters are easier to be changed. (Sometime my rules
 parameters are read from my database)

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php