A form field is associated with a model and an attribute. It contains a label, an input and an error message
and use them to interact with end users to collect their inputs for the attribute.
public field ( |
||
$model | the data model. | |
$attribute | string | the attribute name or expression. See [[Html::getAttributeName()]] for the format about attribute expression. |
$options | array | the additional configurations for the field object. These are properties of [[ActiveField]] or a subclass, depending on the value of [[fieldClass]]. |
return | the created ActiveField object. |