PHP code example of evg-rudakov / yii2-storing-query-params-grid-view
1. Go to this page and download the library: Download evg-rudakov/yii2-storing-query-params-grid-view library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
evg-rudakov / yii2-storing-query-params-grid-view example snippets
<?= \EvgRudakov\StoringQueryParamsGridView\StoringQueryParamsGridView::widget([
'linkContainer' => [
'tag' => 'p',
'options' => ['class' => 'hello'],
],
'link' => [
'text' => 'Reset',
'options' => ['class' => 'btn btn-success']
],
'renderResetLink' => true,
'storingQueryParams' => true,
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
'id',
'name',
'description:ntext',
['class' => 'yii\grid\ActionColumn'],
],
]);