Yii – Install Debug Tool Bar

Stop Talking, lets get into action.

1. Download the latest version of Debug Tool Bar.

2. Extract and Install it at protected\extensions

3. Open and edit protected\config\main.php, Add the following codes under the node [log]

	array(
		'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
	),

Your codes will something look like this under the node [log]

'log'=>array(
	'class'=>'CLogRouter',
	'routes'=>array(
		array(
			'class'=>'CFileLogRoute',
			'levels'=>'error, warning',
		),
		array(
			'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
		),
		// uncomment the following to show log messages on web pages
		/*
		array(
			'class'=>'CWebLogRoute',
		),
		*/
	),
),

3. Open file index.php and uncomment this code

defined('YII_DEBUG') or define('YII_DEBUG',true);

4. Thats it!

5. Let me know your thoughts below…

Tags:

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

You must be logged in to post a comment.