This is my user model... ignore the captcha stuff ;)
for simplicity, I number all my rules, but if there is ONLY one rule it doesn't
need to be numbered... hope this helps you :)
var $validate = array(
'username' => array(
'1' => array('rule' =>
array('between', '4','20'), 'message' => 'Usernames must be
between 4 and 20 characters.'),
'2' => array('rule' =>
array('alphaNumeric'), 'message' => 'Usernames must be Alpha
Numeric (A-Z,a-z,0-9).')
),
'password' => array(
'1' => array('rule' =>
array('between', '6','20'), 'message' => 'Passwords must be
between 6 and 20 characters.')
),
'email' => array(
'1' => array('rule' =>
array('email', true), 'message' => 'Please provide a valid
(verifiable) email address.')
)
);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---