1
有沒有什麼辦法在Yii2分頁listview中隱藏PAGE參數?Yii2分頁listview PAGE params
電流域/(anyattribute)?頁= 2
輸出應該是域/(anyattribute)/ 2
有沒有什麼辦法在Yii2分頁listview中隱藏PAGE參數?Yii2分頁listview PAGE params
電流域/(anyattribute)?頁= 2
輸出應該是域/(anyattribute)/ 2
我不認爲你可以將其隱藏。如果你想隱藏所有的參數屬性,那麼這是可能的。
Pjax::begin(['enablePushState' => false]);
//your grid
Pjax::end();
同樣的概念,我想在ListView中使用。如何自定義我的列表視圖默認分頁URL? –