扫码关注官方订阅号
我的入口文件已经是正式环境了。。。
但是为什么还会有调试条呢?
学习是最好的投资!
你要在配置文件中要找到的调试条的配置
$config['bootstrap'][] = 'debug'; $config['modules']['debug'] = 'yii\debug\Module';
比如我本地main-local.php
if (!YII_ENV_TEST) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = 'yii\debug\Module'; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = 'yii\gii\Module'; } return $config;
难道楼主不是用php init(在项目根目录下)执行切换么?
php init
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
你要在配置文件中要找到的调试条的配置
比如我本地main-local.php
难道楼主不是用
php init(在项目根目录下)执行切换么?