yii\widgets\ActiveForm::beginField PHP Метод

beginField() публичный Метод

This method will create a new form field and returns its opening tag. You should call ActiveForm::endField afterwards.
См. также: endField()
См. также: field()
public beginField ( Model $model, string $attribute, array $options = [] ) : string
$model yii\base\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.
Результат string the opening tag.
    public function beginField($model, $attribute, $options = [])
    {
        $field = $this->field($model, $attribute, $options);
        $this->_fields[] = $field;
        return $field->begin();
    }