首页 > 其他 > 详细

yii框架的调试插件yii-debug-toolbar

时间:2016-03-06 01:25:19      阅读:208      评论:0      收藏:0      [点我收藏+]

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,
	
);


yii框架的调试插件yii-debug-toolbar

原文:http://dsczs.blog.51cto.com/9480367/1747943

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!