Answer the question
In order to leave comments, you need to log in
Yii2, is there a generic solution for editing Grid view entries in a modal window?
I came across several examples on the net, but so far I can not repeat.
It became interesting: maybe there are some best practices, but I'm missing them?
In theory, the task is logical and should have arisen many times already - so why not be a standard solution?
Answer the question
In order to leave comments, you need to log in
There is.
https://github.com/loveorigami/yii2-modal-ajax
https://github.com/johnitvn/yii2-ajaxcrud
Use the second without fanaticism. Because it's not supported. You can see how it's done and write your own. It's not that hard. It all depends on your tasks.
Most of these tasks relate to the UI interface. Therefore, there are not so many such solutions in Yii2. It will not be entirely correct to translate one language into another, although this is sometimes done. If you look at these extensions, that's exactly what they do. That's what JS + Html + CSS is for, and that's their responsibility. You can try to look for ready-made solutions in JS.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question