Tuesday, September 30, 2008

Re: validate alphanumeric

Still I get the same error message.

At /cake/libs/validation.php line 830
if (preg_match($_this->regex, $_this->check)) {

I have an array in $_this->check and this is what generates the error.

In my model I use the following validation rule:

var $validate = array(
'nev' => array('rule' => 'alphaNumeric')
);

By this in validation.php at line 830 I have array('nev' =>
'theGivenString') at this makes the problem, but I can not find out
how to solve it.
--~--~---------~--~----~------------~-------~--~----~
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: