Skip to content

highestgoodlikewater/yii2-enhanced-gii

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-enhanced-gii

Yii2 Gii (generator) with Relation

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads Join the chat at https://gitter.im/mootensai/yii2-enhanced-gii

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require mootensai/yii2-enhanced-gii:dev-master

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 :

  1. Generate optimistic lock
  2. Generate Timestamp Behaviors
  3. Generate Blameable Behavior
  4. Generate UUID Behavior

CRUD :

  1. Generate all CRUD with wildcard (*) of table
  2. Generate related input output
  3. Specify your name/label attribute for foreign keys
  4. Set your column to hidden
  5. Specify your skipped columns
  6. Specify your skipped relations
  7. Set pluralize or not
  8. PDF Printable view

#To Do

  1. One-page-CRUD
  2. Expandable / collapsible row at index grid view for related data
  3. Generate migrations for tables (like https://github.com/mdmsoft/yii2-gii)
  4. Tabbed relations view

I'm open for any improvement

Thanks To

  1. Jiwanndaru (jiwanndaru@gmail.com) for creating the tradition
  2. kartik-v (https://github.com/kartik-v) for most of widgets
  3. schmunk42 (https://github.com/schmunk42) for bootstrap & model base & extension
  4. mdmunir (https://github.com/mdmunir) for JsBlock

About

Enhanced Yii2 Gii (generator) that generates related Models & CRUD

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%