Answer the question
In order to leave comments, you need to log in
How to remove formName from input name in activeField yii2?
It is necessary that the name of the input match the name of the attribute. The formName override leaves the [name] brackets;
$form->field($model, 'title');
Ожидаемы результат:
<input type="text" name="title" ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question