Reputation: 101
is there any way to hide PAGE param in Yii2 pagination listview?
current is domain/(anyattribute)?page=2
output should be domain/(anyattribute)/2
Upvotes: 1
Views: 359
Reputation:
Take a look on https://yii2-cookbook.readthedocs.io/pagination-pretty-urls/ It should solve your problem.
Upvotes: 0
Reputation: 1245
I don't think you can hide it. If you want to hide all of your param attributes then it is possible.
Pjax::begin(['enablePushState' => false]);
//your grid
Pjax::end();
Upvotes: 2