widgets\ActiveForm beginField()

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.

doc_Yii
2016-10-30 17:18:03
Comments
Leave a Comment

Please login to continue.