Gii tools and templates for Yii2.
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',
],
],
],
];
Comments