1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?php use common\models\Mail; use yii\bootstrap\ActiveForm; use yii\web\View; /** * @var View $this * @var Mail $mail * @var ActiveForm $form */ echo $form->field($mail, 'host') ->textInput(); echo $form->field($mail, 'user') ->textInput(); echo $form->field($mail, 'pass') ->textInput();