cakpep/yii2-gii-easyui

Yii2 EasyUi generator for gii

Installs: 80

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2016-05-29 14:23 UTC

This package is not auto-updated.

Last update: 2024-04-27 17:09:16 UTC


README

Yii2 custom generator

Installation

The preferred way to install this extension is through composer.

Either run

composer require cakpep/yii2-gii-easyui "dev-master"

or add

"cakpep/yii2-gii-easyui": "dev-master"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply modify your application configuration as follows:

...
if (!YII_ENV_TEST) {
//     configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = 'yii\debug\Module';

    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
        'generators' => [
            'crud' => ['class' => 'cakpep\gii\generators\crud\Generator'],
        ]
    ];
}