https://github.com/cornernote/yii2-gii
https://github.com/cornernote/yii2-gii
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cornernote/yii2-gii
- Owner: cornernote
- License: other
- Created: 2015-05-27T23:45:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-05-09T16:31:36.000Z (about 7 years ago)
- Last Synced: 2025-01-24T05:23:50.448Z (5 months ago)
- Language: PHP
- Size: 134 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Yii2 Gii
[](https://github.com/cornernote/yii2-gii/tags)
[](LICENSE.md)
[](https://travis-ci.org/cornernote/yii2-gii)
[](https://scrutinizer-ci.com/g/cornernote/yii2-gii/code-structure)
[](https://scrutinizer-ci.com/g/cornernote/yii2-gii)
[](https://packagist.org/packages/cornernote/yii2-gii)Gii tools and templates for Yii2.
## Installation
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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