field($mail, 'host') ->textInput(); echo $form->field($mail, 'user') ->textInput(); echo $form->field($mail, 'pass') ->textInput();