1. Go to this page and download the library: Download apaoww/yii2-jqgrid-widget 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/ */
apaoww / yii2-jqgrid-widget example snippets
use apaoww\jqgrid\actions\JqGridActiveAction;
public function actions()
{
return [
'jqgrid' => [
'class' => JqGridActiveAction::className(),
'model' => Page::className(),
'scope' => function ($query) {
/** @var \yii\db\ActiveQuery $query */
$query->select(['title', 'author', 'language']);
},
],
];
}