Rashmi Nama
Rashmi Nama

Reputation: 101

Yii2 pagination listview PAGE params

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

Answers (2)

user7242866
user7242866

Reputation:

Take a look on https://yii2-cookbook.readthedocs.io/pagination-pretty-urls/ It should solve your problem.

Upvotes: 0

uiTeam324
uiTeam324

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

Related Questions