Thanks :) @ > btw, your TRUE shouldn't be enclosed in an array, it should be " > 'required' => true ".
well, i got confused by the warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash when i dont had the "required" setting in an array, so i pushed it into one, and the error disappeard (but i guess the setting didn't work then). But now i got it, the warning disappeared after adding the rule. Everythings fine now, thx :) On 13 Nov., 10:59, Rafael Bandeira aka rafaelbandeira3 <[EMAIL PROTECTED]> wrote: > > triggered? And how can i avoid it without changing the cakecore? > > set the 'rule' key on $validate for each field, and specify the rule > you want it to follow, when a validation > scheme is set on $validate but no rule is specified, the 'blank' rule > is assumed. > Please refer to the cookbook for more information on validation, we > got lots of information there. > btw, your TRUE shouldn't be enclosed in an array, it should be " > 'required' => true ". > > > $this->exists(); > > What effect does this call have in this context? As far as i see, the > > call returns a boolean to the void o_O ? > > Model::exists() caches the returned value in a private var - Model:: > $__exists - and that's the used in the rest of the method to test the > record existence. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
