I really don't like the validator of Cake, so I created a generic function for every situation
istead of this big code: if (!preg_match(VALID_NOT_EMPTY, $xxx)) {} i do: if (!st($xxx)) {} function st($string) { if (isset($string)) return strlen(trim($string)); else return 0; } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---