yii-debug-toolbar icon indicating copy to clipboard operation
yii-debug-toolbar copied to clipboard

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

Open Mrzhang147 opened this issue 8 years ago • 3 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

Mrzhang147 avatar Jul 12 '16 06:07 Mrzhang147

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 avatar Jul 12 '16 07:07 pvolyntsev

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

Mrzhang147 avatar Jul 13 '16 06:07 Mrzhang147

@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

fmarkwong avatar Aug 11 '16 21:08 fmarkwong