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();
    }