Hi,
     No need to force something in the controller to make working multiple
rules on one field, you can do it this way.
It means the value of rule key can have array of parameters with itself
repeating in the array.

     var $validate = array(
                        'email'=> array(
                                        'email'=>
array('rule'=>'email','message'=>'Email is invalid'),

'isUnique'=>array('rule'=>'isUnique','message'=>'This email is already
registered')));


    }

i hope it will help you.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to