Hello!
I'm new to cakePHP and I would like to make a custom validate rule. I made a page where there is a form with fields such as "name", "adress", etc. In the field "City" there is only ONE city that is not allowed to apply - say, "Forbidden City". I need a rule that is similar to "EqualTo", but the opposite: when the name of the city is equalTo "Forbidden City", then there would be an error message! Something like "rule" => array("NotEqualTo", "Forbidden City"). Is there an easy way to do this? Can I somehow use the "EqualTo" rule? THanks !! -- View this message in context: http://www.nabble.com/making-custom-validate-rule-%28NotEqualTo%29-tp19725904p19725904.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---