Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.18 KB

readme.md

File metadata and controls

54 lines (40 loc) · 1.18 KB

yii2-dhtmlx-gii-generators

This generator generates the grid on a given url with the help of DHTMLX Grid.

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require "dhtmlx/dhtmlx-gii": "dev-master"

or add

"dhtmlx/dhtmlx-gii": "dev-master"

to the require section of your composer.json file.

After that you can install new package:

$ php composer.phar update

Usage

//if your gii modules configuration looks like below:
    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = 'yii\gii\Module';

//remove this two lines
//Add this into common/config/web.php
    
    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
            'class' => 'yii\gii\Module',
            'generators' => [
                'dhtmlx-one-table' => [
                    'class' => 'DHTMLX\Gii\SingleTable\Generator',
                ],
                'dhtmlx-many-tables' => [
                                    'class' => 'DHTMLX\Gii\ManyTables\Generator',
                                ],
            ],
        ];