S
S
Space2015-06-08 08:32:21
JavaScript
Space, 2015-06-08 08:32:21

How to refresh page via pjax?

I don’t understand how to refresh the page when clicking on links inside the sites? All views have the same container. I need the header to always be in place without reloading.
The pjax docs have examples with gridview only.
I work with yii2 .
UPD: just added begin and end, enclosing the desired container. But it only works locally inside the controller. For example, in /site/ it works with all links that are in site, if I go to /board/, then the page is loaded again. What is the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
olegf13, 2015-06-15
@olegf13

This is where the Yii2 + Pjax examples are described - blog.neattutorials.com/yii2-pjax-tutorial
If after reading something is still unclear, ask, I only recently dealt with this issue in development, and the above link helped me a lot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question