webix/gii

Gii 生成器,用于借助 Webix 库在指定 URL 上生成数据表格

dev-master 2015-04-08 12:53 UTC

This package is not auto-updated.

Last update: 2024-09-14 16:29:19 UTC


README

此生成器借助 Webix Datatable 在指定 URL 上生成网格

安装

安装此扩展的首选方式是通过 composer

运行以下命令之一

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

或将

"webix/gii": "dev-master"

添加到您的 composer.json 文件的 require 部分。

之后,您可以安装新包

$ php composer.phar update

使用方法

//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' => [
                'webix-many-tables' => [
                                    'class' => 'Webix\Gii\ManyTables\Generator'
                                ],
            ],
        ];