Yii 1.1: emailsintaxvalidator

E-mail sintax validation
1 follower

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.

Total 2 comments

#871 report it
corpix at 2010/02/14 10:00pm
+1

Huh...this extension not working

#1561 report it
revo110 at 2009/06/23 03:20am
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.

Leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: MetaYii
  • Category: Validation
  • Votes: +1 / -1
  • Downloaded: 1,175 times
  • Created on: Nov 21, 2008
  • Last updated: May 21, 2011