Answer the question
In order to leave comments, you need to log in
How to divide ActiveForm into 2 parts natively in yii2?
I know that in html5 it is possible to bind input to a form via the form attribute. Are there any beautiful solutions, or should I use something else instead of Activeform ? I would still like to use native Yii2 validation
Answer the question
In order to leave comments, you need to log in
Validation in Yii forms is implemented through JS. ActiveForm only creates the structure that is needed, and in the js file it looks for form styles and works with them. To check this, just copy the HTML form generated via AF and the validation will not disappear anywhere. Therefore, you can work on pure HTML by passing data from the form itself. You can also use the HTML helper.
But what's the point?) You can also switch to twig
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question