artem163397 / my_crud
AdminLTE - 基于 Bootstrap 3 的管理控制面板和仪表板
dev-master
2017-06-24 05:39 UTC
This package is not auto-updated.
Last update: 2024-09-24 16:38:34 UTC
README
composer require artem163397/my_crud "dev-master"
在 config/web.php 文件中。在末尾替换
if (YII_ENV_DEV) { // 为 'dev' 环境进行的配置调整 $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', // 取消以下注释以添加您的 IP,如果您不是从本地连接。 //'allowedIPs' => ['127.0.0.1', '::1'], ];
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'generators' => [
'crud' => [
'class' => 'yii\gii\generators\crud\Generator',
'templates' => ['My' => '@app/vendor/artem163397/my_crud']
]
],
// uncomment the following to add your IP if you are not connecting from localhost.
//'allowedIPs' => ['127.0.0.1', '::1'],
];
}