标签:
if (YII_ENV_DEV) { // configuration adjustments for ‘dev‘ environment $config[‘bootstrap‘][] = ‘debug‘; $config[‘modules‘][‘debug‘] = ‘yii\debug\Module‘; $config[‘bootstrap‘][] = ‘gii‘; $config[‘modules‘][‘gii‘] = [ ‘class‘ => ‘yii\gii\Module‘, ‘allowedIPs‘ => [‘127.0.0.1‘, ‘::1‘, ‘192.168.0.*‘, ‘192.168.178.20‘], ]; }
看来多读英文网站还是很有好处的
我配置文件写错位置了
In basic application template configuration structure is a bit different so Gii should be configured in config/web.php
:
basic模版中配置结构有一点不同
所以应如上写
那么问题来了,basic例子中这么写是个特例,正常是如何?
标签:
原文地址:http://www.cnblogs.com/asworm/p/4504137.html