yii debug和gii模块
发布于 2022-08-29 12:38:01阅读 1315
开启 vi config/main.php
if (YII_ENV_DEV) {
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class'=>'yii\debug\Module',
'allowedIPs'=>['*',],
];
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'allowedIPs' => ['*'],
];
}
访问链接
如果启用了美化的Url, enablePrettyUrl=true
已知问题
yii2.0.46, yii2-gii2.2.4在php8.1.9会报错,切换到php7.4才可以