1. Go to this page and download the library: Download kaykay012/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/ */
kaykay012 / gii example snippets
$config = [
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is ] = 'debug';
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
];
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'generators' => [
'model' => [
'class' => 'kaykay012\gii\model\GeneratorCommon',
'templates' => [
'adminlte' => '../../vendor/kaykay012/gii/model/adminlte',
]
],
'crud' => [
'class' => 'kaykay012\gii\crud\Generator',
'templates' => [
'adminlte' => '../../vendor/kaykay012/gii/crud/adminlte',
]
],
]
];
}
return $config;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.