mithun12000/gii2-modulegen

Module generation extension for Gii2

Installs: 61

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Type:yii2-extension

dev-master 2018-02-09 11:32 UTC

This package is not auto-updated.

Last update: 2024-10-08 16:51:43 UTC


README

Module generation extension for Gii2

By using this extension, you can generate pre-build module.

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require mithun12000/gii2-modulegen "*"

or add

"mithun12000/gii2-modulegen": "*"

to the require section of your composer.json file.

Usage

//if your gii modules configuration looks like below:
$config['modules']['gii'] = 'yii\gii\Module';

//change it to
$config['modules']['gii']['class'] = 'yii\gii\Module';
//Add this into backend/config/main-local.php
$config['modules']['gii']['generators'] = [
        'modelgen' => ['class' => 'mithun\modulegen\module\Generator']
    ];