YII学習二十二日目、SQL詳細をフッターに表示

1173 ワード

'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=test_try',
			'emulatePrepare' => true,
			'username' => 'boy_test',
			'password' => 'password',
			'charset' => 'utf8',
                        'tablePrefix' => 'test_',
			'enableProfiling'=>YII_DEBUG,     //             ,    
			'enableParamLogging'=>YII_DEBUG,
		),

'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
					'levels'=>'error, warning',
				),
				// uncomment the following to show log messages on web pages

				array(                              //                   
					'class'=>'CWebLogRoute',
				  'levels'=>'trace',
        	'categories'=>'system.db.*',
				),

			),
		),