【发布时间】:2014-12-05 09:23:34
【问题描述】:
简单的问题,尝试在 yii 2 中启用对 gii 的远程访问 - 文档说 http://www.yiiframework.com/doc-2.0/guide-start-gii.html
Note: If you are accessing Gii from a machine other than localhost, the access will be denied by default for security purpose. You can configure Gii to add the allowed IP addresses as follows,
'gii' => [
'class' => 'yii\gii\Module',
'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.*', '192.168.178.20'] // adjust this to your needs
],
问题是,它没有说明在哪里添加 - 猜测 config/web.php
但是在哪个部分呢?
【问题讨论】:
标签: yii2