2017-05-06 19:18:06 3001次浏览 2条回答 0 悬赏 50 金钱

大神好 求指导为什么 yii2高级版的backend开启debug进度条正常显示而frontend开启debug进度条不正常显示(有时候出现错误的时候正常显示 现在什么都不显示了)

补充于 2017-05-08 15:46

<?php $this->beginBody() ?>

<?php echo $content; ?>

<?php $this->endBody() ?>

最佳答案

  • BoyLee 发布于 2017-05-08 09:35 举报
    2 条回复
    回复于 2017-05-08 12:45 回复

    大神 我的配置如下
    if (!YII_ENV_TEST) {

    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = [
        'class' => 'yii\debug\Module',
        'allowedIPs' => ['*'],
    ];
    
    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
        'allowedIPs' => ['127.0.0.1'],
    ];
    

    }

    return $config;
    也换成大神的代码 测试依然如此 我的是windows系统 应该没有权限问题 大神 求在线QQ指导2448640323

    回复于 2017-05-08 15:49 回复

    结贴了 感谢老胡大神的帮助 我的是布局文件没有写 也感谢您的回答

    <?php $this->beginBody() ?>

    <?php echo $content; ?>

    <?php $this->endBody() ?>

    <?php $this->endPage() ?>

  • 回答于 2017-05-06 20:35 举报

    能不能发一些错误提示或者截图看看

    2 条回复
    回复于 2017-05-07 16:35 回复

    没有错误信息 大神 求加QQ指导 2448640323

    回复于 2017-05-08 15:49 回复

    结贴了 感谢老胡大神的帮助 我的是布局文件没有写 也感谢您的回答

    <?php $this->beginBody() ?>

    <?php echo $content; ?>

    <?php $this->endBody() ?>

    <?php $this->endPage() ?>

您需要登录后才可以回答。登录 | 立即注册
tansuo
助理

tansuo

注册时间:2017-02-03
最后登录:2018-04-11
在线时长:9小时18分
  • 粉丝4
  • 金钱10
  • 威望0
  • 积分100

热门问题