[eluser]oddman[/eluser]
Hey all,
Just a quick question - how exactly does the CI form_validation handle multiple validation methods and its errors? Does it stop validating as soon as a particular field has returned false, or does it execute all validation methods then sets all errors messages? The reason I ask (unable to test atm, at work
) is that I am currently doing this:
Code:
$this->form_validation->set_rule('email', 'required|callback__email_unique');
Basically, I only ever want 1 error per field, and I do not believe it should be executing both, especially if the requirement check fails.
Does CI execute all validation methods, or does it execute each in turn until all validations are successful or it encounters a false return?
Cheers!