abcms/yii2-generators

There is no license information available for the latest version (v2.1.4) of this package.

Installs: 140

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

v2.1.4 2020-04-11 19:09 UTC

This package is auto-updated.

Last update: 2024-04-12 03:58:11 UTC


README

Installation

composer require abcms/yii2-generators

Configuration

Add generators to your config file inside config $config['modules']['gii'] array.

Replace $config['modules']['gii'] = 'yii\gii\Module'; with the following:

$config['modules']['gii'] = [
    'class' => 'yii\gii\Module',
    'generators' => [
        'abcms-crud' => [
            'class' => 'abcms\generators\crud\Generator',
            'templates' => [
                'default' => '@vendor/abcms/yii2-generators/crud/default',
            ]
        ],
        'abcms-model' => [
            'class' => 'abcms\generators\model\Generator',
            'templates' => [
                'default' => '@vendor/abcms/yii2-generators/model/default',
            ]
        ],
    ],
];