A
A
Artem2017-03-13 23:21:27
Yii
Artem, 2017-03-13 23:21:27

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

4 answer(s)
S
Skrolea, 2017-03-14
@beardedman

Will widgets help here?

L
lem_prod, 2017-03-13
@lem_prod

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

A
Alexey, 2017-03-13
@masterfreelance

Make a separate Action for processing the form and the view model (CallbackForm for example) and specify this action in the necessary controllers.

A
Access Denied, 2017-03-14
@AccessDenied80

google - yii2 widget feedback

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question