model(s) and just use that as your validation rule.
-----Original Message-----
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] 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.
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4211 (20090702) __________
The message was checked by ESET NOD32 Antivirus.
--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment