EEmailSintaxValidator checks if an e-mail address is technically correct.
It borrows code from here.
This validator should be considered an improvement of EEmailValidator.
protected/extensionsIn the model:
public function rules() { return array( array('email', 'application.extensions.emailsintaxvalidator.EEmailSintaxValidator') ) }
Total 2 comments
Huh...this extension not working
Hi, I have implemented this at my model, but it does not work.
public function rules() { return array( array('user_id, firstname, lastname, email', 'required'), array('email', 'unique'), array('email', 'application.extensions.emailsintaxvalidator.EEmailSintaxValidator') ); }
When I input the invalid email, it does not display the error.
Leave a comment
Please login to leave your comment.