Created
January 10, 2015 17:07
-
-
Save nsanden/a29b98ec6ca2c2f1b04a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function rules() | |
{ | |
return [ | |
// the name, email, subject and body attributes are required | |
[['name', 'email', 'subject', 'body'], 'required'], | |
// the email attribute should be a valid email address | |
['email', 'email'], | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment