yii框架的調試插件yii-debug-toolbar

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',
				),
				// uncomment the following to show log messages on web pages
				/*
				array(
					'class'=>'CWebLogRoute',
				),
				*/
			),
		),

	),

4 , 更改database.php文件

return array(
// 	'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
	// uncomment the following lines to use a MySQL database
	
	'connectionString' => 'mysql:host=localhost;dbname=yiitest',
	'emulatePrepare' => true,
	'username' => 'root',
	'password' => 'hadoop123',
	'charset' => 'utf8',
    'enableProfiling'=>true,
    'enableParamLogging'=>true,
	
);


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章