I've followed this article:
http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-field-in-cakephp-1-2
but I'm getting this error:


Warning: preg_match() expects parameter 1 to be string, array given in
C:\Program Files\Apache Group\Apache2\htdocs\3Bids\cake\libs\model
\model_php4.php on line 1367

Here's my model code:

var $validate = array(
                'firstname' => VALID_NOT_EMPTY,
                'lastname' => VALID_NOT_EMPTY,
                'username' => array('required' => VALID_NOT_EMPTY,
                                             'length' => array('rule' => 
array('minLength',
6))),
                'password' => VALID_NOT_EMPTY
);

I've got v1.2 so I don't see what I'm doing wrong that the article
isn't also doing. Anyone?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to