pcrt/yii2-gii Alternative Gii generator for Yii2 framework

Yii2-gii

  1. Installation
  2. Usage
  3. License

Additional Gii code generator .

This extension add code generator to Yii2 framework Gii extension.

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require pcrt/yii2-gii "*"

or add

"pcrt/yii2-gii": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, modify your application configuration to include:



  $config['modules']['gii'] = [
      'class' => 'yii\gii\Module',
      ....
      'generators' => [ // HERE
          'pcrtmodel' => [
              'class' => 'pcrt\generators\model\Generator',
              'templates' => [
                  'pcrt' => '@vendor/pcrt/yii2-gii/generators/model/pcrt',
              ]
          ],
          'pcrtcrud' => [
              'class' => 'pcrt\generators\crud\Generator',
              'templates' => [
                  'pcrt' => '@vendor/pcrt/yii2-gii/generators/crud/pcrt',
              ]
          ]
      ],
      ....
      // uncomment the following to add your IP if you are not connecting from localhost.
      // 'allowedIPs' => ['127.0.0.1', '::1'],
  ];

License

Yii2-gii is released under the BSD-3 License. See the bundled LICENSE.md for details.

Enjoy!

0 0
1 follower
700 downloads
Yii Version: 2.0
License: BSD-3-Clause
Developed by: Protocolli Creativi
Created on: Feb 27, 2019
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions