Re: Validating only several fields in model

2008-10-01 Thread 3lancer.eu
Hi, > How can I validate only firstname and lastname fields, without > validating password? You can simply write custom function for validation of that field which would first check if that field is set in $this->data array and if so, perform other checks. However there may be better ways to do

Validating only several fields in model

2008-10-01 Thread Anna P
Hi! I have an issue with data validation. I have model Administrator with fields : firstname,lastname,password In Administrator model I set validation for every field (let's say firstname can't be empty, lastname can't be empty and password can't be empty and can consist only letters). I want to