Hi, sorry, I have forgot this question
I already catch this problem
Thanks very much, my friend
在 2012年8月24日星期五UTC-5上午3时17分46秒,Chetan Patel写道:
>
> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.