PHP code example of myzero1 / yii2-gii

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

    

myzero1 / yii2-gii example snippets


...
if (!YII_ENV_TEST) {
    $config['bootstrap'][] = 'myzero1';
    $config['modules']['myzero1'] = [
        'class' => 'myzero1\gii\Module',
        'allowedIPs' => ['*'],
        // 'generators' => [
        //     'myzero1_mvc' => ['class' => 'myzero1\gii\generators\mvc\Generator'],
        //     'myzero1_crud' => [
        //         'class' => 'myzero1\gii\generators\crud\Generator',
        //         'templates' => [
        //             'adminlte' => '@myzero1/gii/generators/theming/default/adminlte/_gii_templates/crud',
        //         ],
        //         'template' => 'adminlte',
        //         'messageCategory' => 'backend'
        //     ],
        // ]
    ];
}

php composer.phar 

http://localhost/path/to/index.php?r=myzero1
OR
http://localhost/path/to/index.php?r=myzero1/gii