2018-08-16 13:13:31 1779次浏览 1条回答 0 悬赏 10 金钱

我已经按照相关的配置将dubug打开,但是底部调试栏目还是无法出现

if (true) {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = [
        'class' => 'yii\debug\Module',
        // uncomment the following to add your IP if you are not connecting from localhost.
        'allowedIPs' => ['192.168.10.1','*'],
    ];

    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
        // uncomment the following to add your IP if you are not connecting from localhost.

    ];
    $config['modules']['admin'] = [
        'class' => 'app\modules\admin',
        'layout' => 'layout1'
    ];
}

1.jpg

  • 回答于 2018-08-16 13:46 举报

    index.php入口文件加上:

    defined('YII_DEBUG') or define('YII_DEBUG', true);
    defined('YII_ENV') or define('YII_ENV', 'dev');
    
    觉得很赞
您需要登录后才可以回答。登录 | 立即注册
surest
职场新人

surest

注册时间:2018-08-08
最后登录:2018-08-16
在线时长:3小时39分
  • 粉丝0
  • 金钱60
  • 威望0
  • 积分90

热门问题