PHP code example of claudejanz / yii2-mygii

1. Go to this page and download the library: Download claudejanz/yii2-mygii library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

claudejanz / yii2-mygii example snippets


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

//remove this two lines

//Add this into common/config/main-local.php
    'bootstrap' => 'gii',
    'modules' => [
        'gii' => [
            'class' => 'yii\gii\Module',
            'generators' => [
                'doubleModel' => [
                    'class' => 'claudejanz\mygii\generators\model\Generator',
                ],
                'kartik-crud' => [
                    'class'     => 'claudejanz\mygii\generators\kcrud\Generator',
                ],
            ],
        ],
    ],

$ php composer.phar