engmohamedamer / yii2-enhanced-gii
Generate Relational (has many) Models & CRUD.
Package info
github.com/engmohamedamer/yii2-enhanced-gii
Type:yii2-extension
pkg:composer/engmohamedamer/yii2-enhanced-gii
1.0.1
2018-10-25 13:26 UTC
Requires
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Yii2 Gii (generator) with Relation
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require engmohamedamer/yii2-enhanced-gii:@dev
or add
"engmohamedamer/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