mervick/yii2-adminlte-gii

Yii2 AdminLTE Gii Extension

v0.1.0-alpha 2015-07-08 21:22 UTC

This package is not auto-updated.

Last update: 2024-11-09 18:48:34 UTC


README

Analytics

Yii2 Framework Code Generator Extension Gii for AdminLTE template

Installation

This package required by mervick/yii2-adminlte.
If you want install this manually, open terminal and run:

php composer.phar require "mervick/yii2-adminlte-gii" "*"

or add to composer.json

"require": {
    "mervick/yii2-adminlte-gii": "*"
}

Usage

Then extension was installed add the following lines in your configuration file:

return [
    'bootstrap' => ['gii'],
    'modules' => [
        'gii' => [
            'class' => 'yii\gii\Module',
            'controllerNamespace' => 'mervick\adminlte\gii\controllers',
            'generators' => [
                'AdminLTE crud' => [
                    'class' => 'mervick\adminlte\gii\generators\crud\Generator',
                ],
                'AdminLTE model' => [
                    'class' => 'mervick\adminlte\gii\generators\model\Generator',
                ],
            ],
        ],
        // ...
    ],
    // ...
];

Preview

![AdminLTE Gii] (http://webstyle.od.ua/test/yii/gii.png)