Answer the question
In order to leave comments, you need to log in
Yii2 skewed form on site?
Hello!
Inserted into a stupor. I want to make a sloppy feedback form on the site.
To create models in each controller is not true.
As I understand it, we are creating a view that is connected to layout.
Further specifies controller/action in Action of the form and we drive on pjax.
Am I talking right? maybe there are other options?
Answer the question
In order to leave comments, you need to log in
In principle, I would do this ... plus it can be even simpler, a regular POST form, and in the controller a redirect to the refferer
Make a separate Action for processing the form and the view model (CallbackForm for example) and specify this action in the necessary controllers.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question