PHP code example of yujin1st / gii-templates

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

    

yujin1st / gii-templates example snippets


 $config['modules']['gii'] = [
    'class' => 'yii\gii\Module',
    'generators' => [ 
      'crud' => [
        'class' => 'yii\gii\generators\crud\Generator',
        'templates' => [
          'core' => '@yujin1st/gii/core/crud',
        ]
      ],
      'model' => [
        'class' => 'yii\gii\generators\model\Generator',
        'templates' => [
          'core' => '@yujin1st/gii/core/model',
        ]
      ]
    ],
  ];