hmtvltk2/yii2-kartikgii

There is no license information available for the latest version (v1.0) of this package.

Gii Generator base on Kartik-V extension https://github.com/kartik-v

v1.0 2019-01-07 08:25 UTC

This package is auto-updated.

Last update: 2020-01-07 10:43:58 UTC


README

Gii CRUD Generator base on kartik-v extension. Save repeatitive works on every new CRUD generated. Below are some of the features:

  • Data grid view are generated using kartik-v/yii2-grid, pjax are use for the grid
  • Detail View are generated using kartik-v/yii2-detail-view, controllers are generated to support edit mode saving and delete in Detail View.
  • _form are generated using kartik-v/yii2-builder, Date/Time/DateTime/TimeStamp column are automatically generated to use DateTimePicker Widget.
  • Using kartik-v/yii2-datecontrol to globalize date format, so date will automatically convert for the display and also for save according to the format you set, for all CRUD generated using this extension.

By using this extension, you no longer have to change your CRUD to using kartik-v extension, everything will be auto generated for you, and you could customize it later if you need.

Thanks for the great kartik-v extension.

For more information about kartik-v extension, please visit kartik-v at Github.

NOTE: This is the first extension i created, please kindly comment or suggest for better or correct me if im doing anything wrong. Thanks.

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require hmtvltk2/yii2-kartikgii "dev-master"

or add

"hmtvltk2/yii2-kartikgii": "dev-master"

to the require section of your composer.json file.

Usage

//Add this into config/web 
$config['modules']['gii']['generators'] = [
        'kartikgii-crud' => ['class' => 'hmtvltk2\kartikgii\crud\Generator'],
    ];
// Add modules 'gridview' and 'datecontrol' into your 'modules' section in config/web 
'modules' => [
        'gridview' => 'kartik\grid\Module',
        'datecontrol' => 'kartik\datecontrol\Module',
    ],
// Add formatter
'components' => [
  'formatter' => [
            'dateFormat' => 'dd/MM/yyyy',
            'timeFormat' => 'hh:mm:ss a',
            'datetimeFormat' => 'dd/MM/yyyy hh:mm:ss a'
   ],
   ...
]

License

yii2-kartikgii is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.