Windows下debug调试台出不来

来源:7-1 开启Redis缓存以及Debug调试台_xvid

喵喵清吟

2017-04-25

我用的是Windows系统,然后phpStudy集成环境,我配置了,但是那个Debug调试台出不来,(只在我访问gii模块的时候才能看到那个调试台)并且本地配置了虚拟域名来访问项目的

配置代码这样写的,

if (YII_ENV_DEV) {
    // 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' => ['127.0.0.1', '::1'],
//        'allowedIPs' => ['*'],
    ];

    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
        // uncomment the following to add your IP if you are not connecting from localhost.
        'allowedIPs' => ['127.0.0.1', '::1'],
//        'generators' => [
//            // generator name
//            'giix' => [
//                //generator class
//                'class' => 'veyselsahin\giix\model\Generator',
//                //setting for out templates
//                'templates' => [
//                    // template name => path to template
//                    'rbModel' =>
//                    '@app/giiTemplates/model/default',
//                ]
//            ]
//        ],
    ];
}

麻烦看下

写回答

1回答

Jason

2017-04-27

这个需要模板用到assets组件才能调出debug的模板,你看下

0
2
喵喵清吟
非常感谢!
2017-04-27
共2条回复

Yii2.0进阶版 高级组件ES/Redis/Sentry优化京东平台

进阶更高阶的Yii 2.0开发,获得2-3年yii 2.0实战经验

514 学习 · 210 问题

查看课程