【发布时间】:2017-08-16 21:36:00
【问题描述】:
我正在尝试启动 gii 生成器,但由于某种原因它没有启动。我在网络服务器中工作,而不是在我的本地主机中。 我在配置文件中这样设置gii:
if (YII_ENV_DEV) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class' => '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', '195.178.49.18'],
];
}
【问题讨论】:
-
您遇到任何错误?
-
我在浏览器中输入以下链接 - https://"project domain"/index.php?r=gii - 然后进入我的项目页面,上面写着“找不到页面”。
-
https://"project domain"/index.php/gii ..如果您也尝试此消息,您会收到相同的消息吗?
-
我也使用 https://"hostname"/index.php?r=gii - 在这种情况下,它显示“无法访问站点”。当我在网络服务器上工作时,我认为使用 https://"hostname"/index.php?r=gii - 是不合逻辑的。
-
你用的是yii还是yii2?