macgyer\yii2materializecss\widgets\form\ActiveForm::field PHP Method

field() public method

Generates a form field.
public field ( Model $model, string $attribute, array $options = [] ) : ActiveField
$model yii\base\Model the data model.
$attribute string the attribute name or expression. See [yii\helpers\Html::getAttributeName()](http://www.yiiframework.com/doc-2.0/yii-helpers-basehtml.html#getAttributeName()-detail) for the format about attribute expression.
$options array the additional configurations for the field object. These are properties of [yii\widgets\ActiveField](http://www.yiiframework.com/doc-2.0/yii-widgets-activefield.html) or a subclass, depending on the value of [$fieldClass](http://www.yiiframework.com/doc-2.0/yii-widgets-activeform.html#$fieldClass-detail).
return ActiveField the created ActiveField object
    public function field($model, $attribute, $options = [])
    {
        return parent::field($model, $attribute, $options);
    }
ActiveForm