Add Custom Pagination for Gridview in form view Yii2

By January 4, 2016PHP, YII

Add ‘pagination’ element to your dataProvider array in search function of search model

Source

$dataProvider = new ActiveDataProvider([
            'query' => $query,
            'pagination' => [
                'pageSize' => 5,
            ]
        ]);
Pankaj Singh Sugara

Author Pankaj Singh Sugara

More posts by Pankaj Singh Sugara