deesoft/yii2-gii

Yii2 custom generator for gii

Installs: 10 136

Dependents: 5

Suggesters: 0

Security: 0

Stars: 4

Watchers: 4

Forks: 15

Open Issues: 6

Type:yii2-extension

1.4 2015-09-05 07:05 UTC

This package is not auto-updated.

Last update: 2024-11-14 06:10:44 UTC


README

Yii2 custom generator

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require deesoft/yii2-gii "~1.0"

or add

"deesoft/yii2-gii": "~1.0"

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' => 'dee\gii\generators\crud\Generator'],
            'angular' => ['class' => 'dee\gii\generators\angular\Generator'],
            'mvc' => ['class' => 'dee\gii\generators\mvc\Generator'],
            'migration' => ['class' => 'dee\gii\generators\migration\Generator'],
        ]
    ];
}