public function actionPagination()
    {
        Yii::$app->session->set($this->MainModel . 'Pagination', Yii::$app->request->queryParams['records']);
        $this->redirect(['index']);
    }
public function actionPagination()
    {
        Yii::$app->session->set($this->MainModel . 'Pagination', Yii::$app->request->queryParams['records']);
        $this->redirect(['index']);
    }
public function actionPagination ( ) { Yii :: $ app -> session -> set ( $ this -> MainModel . 'Pagination' , Yii :: $ app -> request -> queryParams [ 'records' ] ) ; $ this -> redirect ( [ 'index' ] ) ; }
Sets the pagination for the list
@return mixed
Sets the pagination for the list