'username' => array(
'notEmpty' => array(
'rule' => 'notEmpty',
'message' => 'This field cannot be blank',
'last' => true
),
'username' => array(
'rule' => 'isUnique',
'message' => 'That username has already been
taken.'
),
'username' => array('rule'=>'/^.{6,40}$/',
'message' => 'Minimum
username 6 characters.')
),
The above code only enables "notEmpty" and Minimum characters '/^.
{6,40}$/'. The rule for "isUnique" can't be triggered, can some share
what needed to add somewhere in the code ?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en