A simple validation rule not working correctly

2008-01-30 Thread Reny
Hi all, I'm using the last beta release and I have this problem: I have in my model that validation rules var $validate = array( 'password' = array( 'alphanumeric' = array( 'rule' = 'alphanumeric',

Re: A simple validation rule not working correctly

2008-01-30 Thread grigri
var $validate = array( 'password' = array( 'rule' = 'alphanumeric', 'required' = true, 'allowEmpty' = false ) ); 'required' means that the form field must be submitted, i.e. you can't add/update this model without specifying that field. 'allowEmpty' means that if the field is

Re: A simple validation rule not working correctly

2008-01-30 Thread Marcin Jaworski
Try this: var $validate = array( 'password' = array( 'rule' = 'alphanumeric', 'required' = true ) ); On 30 Sty, 11:06, Reny [EMAIL PROTECTED] wrote: Hi all, I'm using the last beta release and I have this problem: I have in my model that validation rules var $validate = array(

Re: A simple validation rule not working correctly

2008-01-30 Thread Reny
On 30 Gen, 13:45, grigri [EMAIL PROTECTED] wrote: var $validate = array( 'password' = array( 'rule' = 'alphanumeric', 'required' = true, 'allowEmpty' = false ) ); ok, thanks, my password arrive in controller (and in model validation also) not blank, beacuse, I think, I use