W
W
walder2018-08-13 09:47:52
Yii
walder, 2018-08-13 09:47:52

What is the best way to make a modal window for another model?

Hello!
What is the best way to implement editing of another model in a modal window, I have a GridView, when I click on any line from the table, I must show the data of the associated DetailView table, which I must edit. Tell me how it is better to be with a controller for another model ... what is the best way to do this, through Yii 2 Dialog or through Bootstrap Modal?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-08-13
@walder

Good morning.
Display the form in a modal window.
In the "action" form attribute, specify the path to the desired controller.
In the specified controller, create an action to handle ajax requests.
Everything.
ps
It doesn't matter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question