You need a newer version, try 1.2.0.5146alpha ( http://cakeforge.org/frs/?group_id=23 )
On Jun 12, 1:19 am, pbland <[EMAIL PROTECTED]> wrote: > I've followed this > article:http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-... > 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 -~----------~----~----~----~------~----~------~--~---
