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 |