beginField() public method
Begins a form field.
This method will create a new form field and returns its opening tag. You should call endField() afterwards.
See also:
public string beginField ( $model, $attribute, $options = [] ) | ||
---|---|---|
$model | yii\base\Model |
The data model. |
$attribute | string |
The attribute name or expression. See yii\helpers\Html::getAttributeName() for the format about attribute expression. |
$options | array |
The additional configurations for the field object. |
return | string |
The opening tag. |
Please login to continue.