Saturday, December 3, 2011

Re: Validation rules - what a nightmare...

So it should be this way?
'password' => array(
'required' => array('rule' => 'notEmpty', 'message' =>
'EmptyPassword', 'required' => true, 'allowEmpty' => false, 'last' =>
true),
'between' => array('rule' => array('between', 6,15),
'message' => 'ToShortPassword', 'last' => true)
)
But that is NOT changing anything? With an empty password field I
still get the ToShortPassword message?

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: