myzero1/yii2-gii

Yii2 custom generator for gii

Maintainers

👁 myzero1

Package info

github.com/myzero1/yii2-gii

Type:yii2-extension

pkg:composer/myzero1/yii2-gii

Statistics

Installs: 19

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

2.0.1 2017-11-21 10:08 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

BSD-3-Clause 0bd5bffa2f98bb3221846ec89be12bf635c9c107

  • Xuanwu Qin <myzero1.woop@sina.com>

thememvcmigrationyii2gii

This package is not auto-updated.

Last update: 2026-06-21 13:46:50 UTC


README

It add theming generator and new template for crud.It based on yiisoft/yii2-gii

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require-dev myzero1/yii2-gii:1.*

or add

"myzero1/yii2-gii": "~1.0.0"

to the require-dev section of your composer.json file.

Setting

Once the extension is installed, simply modify your application configuration as follows:

...
if (!YII_ENV_TEST) {
 $config['bootstrap'][] = 'myzero1';
 $config['modules']['myzero1'] = [
 'class' => 'myzero1\gii\Module',
 'allowedIPs' => ['*'],
 // 'generators' => [
 // 'myzero1_mvc' => ['class' => 'myzero1\gii\generators\mvc\Generator'],
 // 'myzero1_crud' => [
 // 'class' => 'myzero1\gii\generators\crud\Generator',
 // 'templates' => [
 // 'adminlte' => '@myzero1/gii/generators/theming/default/adminlte/_gii_templates/crud',
 // ],
 // 'template' => 'adminlte',
 // 'messageCategory' => 'backend'
 // ],
 // ]
 ];
}

Usage

You can then access Gii through the following URL:

http://localhost/path/to/index.php?r=myzero1
OR
http://localhost/path/to/index.php?r=myzero1/gii

or if you have enabled pretty URLs, you may use the following URL:

http://localhost/path/to/index.php/myzero1
OR
http://localhost/path/to/index.php/myzero1/gii