Commit f6c0b4c2 by Qiang Xue

minor doc fix.

parent 04b2936d
...@@ -9,22 +9,22 @@ Installing and configuring ...@@ -9,22 +9,22 @@ Installing and configuring
Add these lines to your config file: Add these lines to your config file:
``` ```php
'preload' => ['debug'], 'preload' => ['debug'],
'modules' => [ 'modules' => [
'debug' => ['yii\debug\Module'] 'debug' => ['yii\debug\Module']
] ]
``` ```
**Watch out: by default the debug module only works when browsing the website from the localhost. If you want to use it > Note: by default the debug module only works when browsing the website from the localhost. If you want to use it
on a remote (staging) server, add the parameter allowedIPs to the config to whitelist your IP, e.g. :** > on a remote (staging) server, add the parameter allowedIPs to the config to whitelist your IP, e.g. :**
``` ```php
'preload' => ['debug'], 'preload' => ['debug'],
'modules' => [ 'modules' => [
'debug' => [ 'debug' => [
'class'=>'yii\debug\Module', 'class' => 'yii\debug\Module',
'allowedIPs'=>['1.2.3.4', '127.0.0.1', '::1'] 'allowedIPs' => ['1.2.3.4', '127.0.0.1', '::1']
] ]
] ]
``` ```
......
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