EEmailSintaxValidator checks if an e-mail address is technically correct.
It borrows code from here.
This validator should be considered an improvement of EEmailValidator.
Resources ¶
Documentation ¶
Requirements ¶
- Yii 1.1 or above
Installation ¶
- Extract the release file under
protected/extensions
Usage ¶
In the model:
public function rules()
{
return array(
array('email', 'application.extensions.emailsintaxvalidator.EEmailSintaxValidator')
)
}
ChangeLog ¶
- 1.1 fixed silly bug.
+1
Huh...this extension not working
How to load this ?
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.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.