There is no license information available for the latest version (dev-master) of this package.

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

dev-master 2017-03-12 18:34 UTC

This package is not auto-updated.

Last update: 2020-02-21 17:18:58 UTC


The preferred way to install this extension is through composer.

Either run

$ php composer.phar require felipe-santos/yii2-kartikgii "dev-master"

or add

"felipe-santos/yii2-kartikgii": "dev-master"

to the require section of your composer.json file.


//if your gii modules configuration looks like below:
$config['modules']['gii'] = 'yii\gii\Module';

//change it to
$config['modules']['gii']['class'] = 'yii\gii\Module';
//Add this into backend/config/main-local.php
$config['modules']['gii']['generators'] = [
        'kartikgii-crud' => ['class' => 'felipe-santos\kartikgii\crud\Generator'],
//Add 'gridview' into your 'modules' section in backend/config/main.php
'modules' => [
        'gridview' => [
            'class' => 'kartik\grid\Module',

//add modules 'datecontrol' into your 'modules' section in common/config/main 
'modules' => [
        'datecontrol' =>  [
            'class' => 'kartik\datecontrol\Module',

            // format settings for displaying each date attribute
            'displaySettings' => [
                'date' => 'd-m-Y',
                'time' => 'H:i:s A',
                'datetime' => 'd-m-Y H:i:s A',

            // format settings for saving each date attribute
            'saveSettings' => [
                'date' => 'Y-m-d', 
                'time' => 'H:i:s',
                'datetime' => 'Y-m-d H:i:s',

            // automatically use kartik\widgets for each of the above formats
            'autoWidget' => true,



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