Validation errors

public function rules()


		return array(

			array('usermail', 'required'),


			array ('usermail','verify'),



Whenever validation errors occurs it shows both the errors e.g.

If I entered rejoice in the usermail field, it shows error that it is not an email as well as error due to verify validator. Is it possible if the first validation fails e.g. email, it does not give the error message of second validation e.g. verify.

what is the verify validator and why is it needed when you have the email validator?

verify is a validation, which checks whether it exists in the database or not…

OK. instead of verify which seems to be a custom validation use the built-in ‘unique’ validation: and you should not have this issue anymore. Let me know if this works for you