Yii2 Pjax not working

前端 未结 2 1802

I want to refresh the gridview using Pjax but somehow it is not working. Here is the code:

_search.php

    

        
2条回答
  •  自闭症患者
    2020-12-28 23:04

    Thanks Edin. It helped me to solved the problem. Here is what I did. It might help someone facing the same problem.

    As Edin mentioned you need to pass the url along with the search parameters to the Pjax in order to refresh the gridview.

    Here's my edited code :

        $js = <<registerJs($js);
    

提交回复
热议问题