Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 939 Bytes

README.md

File metadata and controls

50 lines (38 loc) · 939 Bytes

Generators for Yii 2

Provide:

  • usage of relations in views and search
  • image, sorter, status columns
  • better views
  • integrations with other my extensions
  • autocompletion

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"webvimark/generators": "*"

to the require section of your composer.json file.

Configuration

In your config/web.php

	$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