malyshev / yii-debug-toolbar

A configurable set of panels that display various debug information about the current request/response.

Home Page:http://www.yiiframework.com/extension/yii-debug-toolbar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I've installed the extension, but does not display panel

Mrzhang147 opened this issue · comments

'log'=>array(
            'class'=>'CLogRouter',
            'routes'=>array(
                    array(
                            'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
                            // Access is restricted by default to the localhost
                            //'ipFilters'=>array('*'),
                    ),
            ),
    ),

'db'=>array(
'class' =>'CDbConnection',
'connectionString' => 'mysql:host=_;dbname=_',
'emulatePrepare' => true,
'username' => '**
',
'password' => '
*',
'charset' => 'utf8',
'enableProfiling'=>true,
'enableParamLogging'=>true,
),
This configuration of, in addition to the two still need what configuration?
In firefox, Google, all don't, according to 1.1.7 YII version

Try to uncomment 'ipFilters' => array('*')

'log'=>array(
            'class'=>'CLogRouter',
            'routes'=>array(
                    array(
                            'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
                            // **Access is restricted by default to the localhost**
                            'ipFilters'=>array('*'), // uncomment this
                    ),
            ),
    ),

@pvolyntsev Have tried, no, don't know in addition to these also need to configure

@Mrzhang147 I had the same problem as you with the toolbar not appearing.

In my case, the code for the debug panel was being injected in my views successfully but the problem was my view code was conflicting with it and causing it to not appear.

I didn't want to spend the time to try to resolve it so I searched and came across this toolbar, https://github.com/zhuravljov/yii2-debug, which works for me. It seems to isolate the debug bar from the rest of the view better.

This debug toolbar also has an ipfilter setting which I had to set to array('*') for it to work. Fyi, I'm running Yii 1.1.14