Advertisement
nazmiwafiy

EntryForm

Dec 5th, 2018
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1.  
  2. <?php
  3.  
  4. namespace frontend\models;
  5.  
  6. use Yii;
  7. use yii\base\Model;
  8.  
  9. class EntryForm extends Model
  10. {
  11.     public $name;
  12.     public $email;
  13.  
  14.     public function rules()
  15.     {
  16.         return [
  17.             [['name', 'email'], 'required'],
  18.             ['email', 'email'],
  19.         ];
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement