PHP code example of jsyqw / business-gii

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

    

jsyqw / business-gii example snippets


    ...
    $config['modules']['gii'] = [
            'class' => 'yii\gii\Module',
            // uncomment the following to add your IP if you are not connecting from localhost.
            'allowedIPs' => ['127.0.0.1', '::1'],
            'generators' => [
                'businessModel' => [ //生成器名称
                    'class' => 'Jsyqw\BusinessGii\model\Generator',
                ],
                'businessApi' => [ //生成器名称
                    'class' => 'Jsyqw\BusinessGii\api\Generator',
                ]
            ],
        ]
    ...

    [
        'Jsyqw\\BusinessGii\\' => array($vendorDir . '/business-gii/src'),
    ],