PHP code example of futuretek / yii2-gii-generators

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

    

futuretek / yii2-gii-generators example snippets


'modules' => [
    'gii' => [
        'class' => 'yii\gii\Module',
        'allowedIPs' => ['127.0.0.1', '::1'],
        'generators' => [
            'smartyCrud' => [
                'class' => 'futuretek\gii\generators\smartyCrud\Generator',
                'templates' => [
                    'futuretek' => '@app/vendor/futuretek/yii2-gii-generators/smartyCrud/default',
                ]
            ],
            'ftsCrud' => [
                'class' => 'futuretek\gii\generators\crud\Generator',
                'templates' => [
                    'default' => '@app/vendor/futuretek/yii2-gii-generators/crud/default',
                    'purus' => '@app/vendor/futuretek/yii2-gii-generators/crud/purus',
                ]
            ],
            'model' => [
                'class' => 'yii\gii\generators\model\Generator',
                'templates' => [
                    'futuretek' => '@app/vendor/futuretek/yii2-gii-generators/model',
                ]
            ]
        ]
    ],
]     

php composer.phar