myzero1/yii2-gii-plus 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

myzero1/yii2-gii-plus

Composer 安装命令:

composer require myzero1/yii2-gii-plus

包简介

Yii2 custom generator for gii

README 文档

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-plus:1.*

or add

"myzero1/yii2-gii-plus": "~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\yii2giiplus\Module',
        'allowedIPs' => ['*'],
        // 'generators' => [
        //     'myzero1_mvc' => ['class' => 'myzero1\yii2giiplus\generators\mvc\Generator'],
        //     'myzero1_crud' => [
        //         'class' => 'myzero1\yii2giiplus\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

统计信息

  • 总下载量: 123
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-11-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固