1 , 下载地址

https://github.com/malyshev/yii-debug-toolbar.git

2 , yii框架配置

3 , 更改main.php文件

'log'=>array('class'=>'CLogRouter','routes'=>array(array('class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',),//uncommentthefollowingtoshowlogmessagesonwebpages/*array('class'=>'CWebLogRoute',),*/),),),

4 , 更改database.php文件

returnarray(//'connectionString'=>'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',//uncommentthefollowinglinestouseaMySQLdatabase'connectionString'=>'mysql:host=localhost;dbname=yiitest','emulatePrepare'=>true,'username'=>'root','password'=>'hadoop123','charset'=>'utf8','enableProfiling'=>true,'enableParamLogging'=>true,);