marena / yii2-enhanced-gii
Generate Relational (has many) Models & CRUD.
Installs: 2 801
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 96
Type:yii2-extension
pkg:composer/marena/yii2-enhanced-gii
README
Yii2 Gii (generator) with Relation
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require mootensai/yii2-enhanced-gii:@dev
or add
"mootensai/yii2-enhanced-gii": "@dev"
to the require section of your composer.json file.
Then you must add this code at your config\main.php.
'modules' => [ ... //your another module 'gridview' => [ 'class' => '\kartik\grid\Module', ], ... // your another module ],
Usage :
Go to your gii tools, and notice the new IO Generator for models & CRUD
#Features
Model :
- Generate optimistic lock
 - Generate Timestamp Behaviors
 - Generate Blameable Behavior
 - Generate UUID Behavior
 
CRUD :
- Generate all CRUD with wildcard (*) of table
 - Generate related input output
 - Specify your name/label attribute for foreign keys
 - Set your column to hidden
 - Specify your skipped columns
 - Specify your skipped relations
 - Set pluralize or not
 - PDF Printable view
 - Expandable / collapsible row at index grid view for related data
 
To Do
- Nested set detector & generator -> cancelled, move to -> https://github.com/mootensai/yii2-enhanced-gii-nested (unfinished)
 - One-page-CRUD template
 - Generate migrations for tables (like https://github.com/mdmsoft/yii2-gii)
 - RESTful template
 
I'm open for any improvement
Thanks To
- Jiwanndaru (jiwanndaru@gmail.com) for creating the tradition
 - kartik-v (https://github.com/kartik-v) for most of widgets
 - schmunk42 (https://github.com/schmunk42) for bootstrap & model base & extension
 - mdmunir (https://github.com/mdmunir) for JsBlock