WelcomeForm.php 602 Bytes
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
<?php
Aster's avatar
Aster committed
2

Marcello Pivanti's avatar
Marcello Pivanti committed
3
4
5
6
7
8
9
10
11
namespace app\models;

use yii\base\Model;
use yii\helpers\Html;


/**
 * ContactForm is the model behind the contact form.
 */
Aster's avatar
Aster committed
12
class WelcomeForm extends Model implements \elitedivision\amos\wizflow\WizflowModelInterface
Marcello Pivanti's avatar
Marcello Pivanti committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
    public $name;
    public $email;
    public $status;

    /**
     * @return array the validation rules.
     */
    public function rules()
    {
        return [
            [['name', 'email'], 'required'],
            ['email', 'email'],
        ];
    }

    public function summary()
    {
        return 'Hello <b>' . Html::encode($this->name) . '</b>';
    }
}