PHP code example of agik / yii2datatable

1. Go to this page and download the library: Download agik/yii2datatable 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/ */

    

agik / yii2datatable example snippets

:
use app\models\LevelAccess; 
use agik\yii2datatable\Table;
:
$dt=new Table(LevelAccess::find());
//if using join
$dt->model->joinWith('menu');
//if using join
$dt->model->joinWith('levelUser');
 return $dt->getRow();