Yii2 Gii (generator) with Relation person to PostgreSQL
The preferred way to install this extension is through composer.
Either run
$ composer require thtmorais/easyiigii:dev-master
or add
"thtmorais/easyiigii": "dev-master",
to the require
section of your composer.json
file.
Then you must add this code at your config\main.php.
'modules' => [
'gridview' => [
'class' => '\kartik\grid\Module',
],
'datecontrol' => [
'class' => '\kartik\datecontrol\Module',
],
],
See gridview settings on http://demos.krajee.com/grid#module
See datecontrol settings on http://demos.krajee.com/datecontrol#module
Go to your gii tools, and notice the new EasYii Gii Generator for models & CRUD
#Features
- Generate optimistic lock
- Generate Timestamp Behaviors
- Generate Blameable Behavior
- Generate UUID Behavior
- Generate validations for e-mail, CPF/CNPJ
- 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
- Views with or without TabularForms
- Generate migration from your database structure (based on : https://github.com/deesoft/yii2-gii)
- One-page-CRUD template
- Implement generator for Soft Delete Behavior (https://github.com/yii2tech/ar-softdelete)
I'm open for any improvement
- Jiwanndaru ([email protected]) 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 & Migration Generator (from https://github.com/deesoft/yii2-gii)
- mootensai(https://github.com/mootensai) for yii2-enhanced-gii(https://github.com/mootensai/yii2-enhanced-gii)