cornernote/yii2-gii

Gii tools and templates for Yii2.

Installs: 504

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

0.1.2 2018-05-09 16:31 UTC

This package is auto-updated.

Last update: 2024-03-19 17:25:22 UTC


README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

Gii tools and templates for Yii2.

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require cornernote/yii2-gii "*"

or add

"cornernote/yii2-gii": "*"

to the require section of your composer.json file.

Add to your yii config in config/main.php:

    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
        'generators' => [
            'giiant-model' => [
                'class' => 'schmunk42\giiant\generators\model\Generator',
                'templates' => [
                    'cornernote' => '@vendor/cornernote/yii2-gii/src/giiant/model/cornernote',
                ],
            ],
            'giiant-crud' => [
                'class' => 'schmunk42\giiant\generators\crud\Generator',
                'templates' => [
                    'cornernote' => '@vendor/cornernote/yii2-gii/src/giiant/crud/cornernote',
                ],
            ],
        ],
    ];

Using Giiant with Providers

https://gist.github.com/cornernote/fdf869048d6153d7aae3