2017 © Pedro Peláez
 

library generators

Generators for yii 2

image

webvimark/generators

Generators for yii 2

  • Tuesday, July 19, 2016
  • by webvimark
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3,021 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 9 % Grown

The README.md

Generators for Yii 2

Provide: * usage of relations in views and search * image, sorter, status columns * better views * integrations with other my extensions * autocompletion, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

composer require --prefer-dist webvimark/generators "*"

or add, (*4)

"webvimark/generators": "*"

to the require section of your composer.json file., (*5)

Configuration

In your config/web.php, (*6)

    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class'=>'yii\gii\Module',
        'generators' => [
            'n-model'     => 'webvimark\generators\model\Generator',
            'n-crud'      => 'webvimark\generators\crud\Generator',
            'n-module'    => 'webvimark\generators\module\Generator',
            'n-extension' => 'webvimark\generators\extension\Generator',
        ]
    ];

Usage

Go to gii, (*7)

The Versions