2017 © Pedro Peláez
 

yii2-extension grid-to-session-behavior

This is yii2 controller behavior. It can save and restore grid filters, page and sort in session.

image

restlin/grid-to-session-behavior

This is yii2 controller behavior. It can save and restore grid filters, page and sort in session.

  • Monday, February 12, 2018
  • by Restlin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

GridToSessionBehavior

This is yii2 controller behavior. It can save grid filters, page and sort in session and restore when user return to action with grid., (*1)

example for using this behavior in controller:, (*2)

```php /** * Lists all Document models. * @param integer $mode in this case this parameter is indicator for restore params from session * @return mixed */ public function actionIndex($mode=null) { $searchModel = new DocumentSearch(); if(!$mode) { $this->loadParams(); $mode = Yii::$app->request->get('mode'); } $this->saveParams('DocumentSearch',['mode'=>1]);
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);, (*3)

return $this->render('index', [
    'searchModel' => $searchModel,
    'dataProvider' => $dataProvider,        
]);

} ```, (*4)

The Versions

12/02 2018

dev-master

9999999-dev https://github.com/Restlin/GridToSessionBehavior

This is yii2 controller behavior. It can save and restore grid filters, page and sort in session.

  Sources   Download

GNU3 GPL-3.0-or-later

The Requires

 

by Ilya Shumilov

extension yii2 grid controller session

12/02 2018

1.0.2

1.0.2.0 https://github.com/Restlin/GridToSessionBehavior

This is yii2 controller behavior. It can save and restore grid filters, page and sort in session.

  Sources   Download

GPL-3.0-or-later

The Requires

 

by Ilya Shumilov

extension yii2 grid controller session

28/09 2016

1.0.1

1.0.1.0 https://github.com/Restlin/GridToSessionBehavior

This is yii2 controller behavior. It can save and restore grid filters, page and sort in session.

  Sources   Download

GNU3

The Requires

 

by Ilya Shumilov

extension yii2 grid controller session

27/09 2016

1.0.0

1.0.0.0 https://github.com/Restlin/GridToSessionBehavior

This is yii2 controller behavior. It can save and restore grid filters, page and sort in session.

  Sources   Download

GNU3

The Requires

 

by Ilya Shumilov

extension yii2 grid controller session