Hello friends
Your mystake is minor,
Just replace "alphaNumberic" with "alphaNumeric".
Then Your validate array would be like below
public $validate = array(
'username' => array(
'alphaNumberic' => array(
'rule'=>'alphaNumeric',
'require' => 'true',
'message' => 'numberic and characters only'
),
'between' => array(
'rule' => array('between', 9, 18),
'message' => '9-18characters',
)
),
'password' => array(
'alphaNumberic' => array(
'rule'=>'alphaNumeric',
'require' => 'true',
'message' => 'numberic and characters only'
),
'between' => array(
'rule' => array('between', 9, 18),
'message' => '9-18characters',
)
),
'email' => array(
'rule'=>'email',
'message'=>'it is not email'
),
);
--
Thanks & Regards
Chetan Patel
--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Friday, August 24, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment