PHP code example of gridview / yii2-gridview
1. Go to this page and download the library: Download gridview/yii2-gridview 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/ */
gridview / yii2-gridview example snippets
<?= \vladayson\GridView\GridView::widget([
'dataProvider' => $dataProvider,
'modelClass' => SomeSearchModel::class,
'filterView' => '@app/views/search/_search', //search form path
'filterViewParams' => [
'searchModel' => $searchModel,
'someAnotherData' => $someAnother
],
'columns' => [...],
]);
php composer.phar