Tuesday, September 30, 2008

override built-in validation methods

Is anyone knows how to properly overrdie a bult-in validation
function?

I just created in my app_model.php file a function named alphaNumeric,
the whole function is the same as the built-in, I just changed the
regex.

Still I get error message:
Warning (2): preg_match() expects parameter 2 to be string, array
given [CORE/cake/libs/validation.php, line 830]
--~--~---------~--~----~------------~-------~--~----~
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: