On Wednesday, November 23, 2011 6:56:16 PM UTC+7, Jeremy Burns wrote:
>
> Makes no difference - but then why would it?
>
I think I have misunderstood your issue.
I've tried again with this:
'first_name' => array(
'maxlength' => array(
'rule' => array('maxlength', 10),
'message' => 'too long',
'required' => true,
*'allowEmpty' => true,*
),
'minlength' => array(
'rule' => array('minlength', 3),
'message' => 'too short',
),
),
);
Having allowEmpty = true removes the 'required' class with the rule is
still active. Is this what you need?
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php