PHP code example of pascini / yii2-gii

1. Go to this page and download the library: Download pascini/yii2-gii 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/ */

    

pascini / yii2-gii example snippets


...
if (!YII_ENV_TEST) {
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = 'yii\debug\Module';

    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
        'generators' => [
            'crud' => [
                'class' => 'yii\gii\generators\crud\Generator',
                'templates' => [
                    'Raphaelbsr Crud' => '@vendor/raphaelbsr/yii2-gii/crud/default',
                ],
            ],
        ]
    ];
}


php composer.phar