No built in method no, but you could pretty easy put your own method in your model(s) and just use that as your validation rule.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of hoyos Sent: Friday, 3 July 2009 9:13 a.m. To: CakePHP Subject: Form Validation: Opposite of EqualTo (NotEqualTo, Does Not Equal) Hey, Simple question, is there a built-in form validation function to validate that a field DOES NOT EQUAL a certain value? For example: 'password' => array( 'rule' => array('notEqualTo', 'password'), 'message'=>'Please choose a more unique password.'); Thanks, Andy __________ Information from ESET NOD32 Antivirus, version of virus signature database 4206 (20090701) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4211 (20090702) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
