prodex/yii2-gii

Yii2 gii templates

Installs: 139

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.8 2017-11-18 12:37 UTC

This package is not auto-updated.

Last update: 2024-06-08 18:22:05 UTC


README

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist prodex/yii2-gii "^1.0"

or add

"prodex/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:

return [
    'bootstrap' => ['gii'],
    'modules' => [
        'gii' => [
            'class' => 'yii\gii\Module',
            'generators' => [
                'crud' => [
                    'class' => 'prodex\yii\gii\generators\crud\Generator',
                    'excludeColumnsFromForm' => ['created_at', 'create_time', 'updated_at', 'update_time']
                ],
                'model' => [
                    'class' => 'prodex\yii\gii\generators\model\Generator'
                ]
            ],
        ],
        // ...
    ],
    // ...
];