1. Go to this page and download the library: Download mirkhamidov/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/ */
mirkhamidov / yii2-gii example snippets
if (!YII_ENV_TEST) {
...
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'allowedIPs' => ['*'],
'generators' => [ //here
'model' => [ // generator name
'class' => 'm1roff\gii\generators\model\Generator', // generator class
'templates' => [ //setting for out templates
'myModel' => '@m1roff/gii/generators/model/default', // template name => path to template
]
],
'crud' => [ // generator name
'class' => 'm1roff\gii\generators\crud\Generator', // generator class
'templates' => [ //setting for out templates
'myCrud' => '@m1roff/gii/generators/crud/default', // template name => path to template
]
],
],
];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.