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.


Reply via email to