Answer the question
In order to leave comments, you need to log in
Why does ActiveForm work with $model?
In the controller we create a $model object and call render(form, ['model' => $model])
And then pass this object and property to the ActiveForm field
But why does an ActiveForm need a $model and a property?? After all, it just generates an html input field
'name')
= $form->field($model,
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