Commit abb807bd by Alexander Makarov

Fixes #4948. Thanks, @johan162

parent 06a3f5ff
...@@ -43,6 +43,16 @@ Thanks to that line, your application is in development mode, and will have alre ...@@ -43,6 +43,16 @@ Thanks to that line, your application is in development mode, and will have alre
http://hostname/index.php?r=gii http://hostname/index.php?r=gii
``` ```
> Note: if you are accessing gii from an IP address other than localhost, access will be denied by default.
> To circumvent that default, add the allowed IP addresses to the configuration:
>
```php
'gii' => [
'class' => 'yii\gii\Module',
'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.*', '192.168.178.20'] // adjust this to your needs
],
```
![Gii](images/start-gii.png) ![Gii](images/start-gii.png)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment