Can I use Pjax to update two units?


Use Pjax widget in Yii2. On the products page now has a filter, and the results of applying the filter. A separate filter and a separate output wrapped in Pjax. Is it possible when you change one block (filter) to update the data in both blocks with a single request?

Thank you.
July 2nd 19 at 18:21
1 answer
July 2nd 19 at 18:23
Not sure that is possible with one query, but with one click you can. That docks on to the script:

I did not try it, but I think that path 2, or two containers that have the same linkSelector, or cling to the event pjax:success

Find more questions by tags YiiJavaScript