Designing and Development > Yii PHP Framework Support
How to echo query in yii framework
(1/1)
perks:
Hi ,
i want to see my query as a string so that i can change my query to move further with wrong statements
so that i can save my time or system time as well...!!!!
phpdeveloper:
hey you can use getText() to see your query or you can also change this to see AR query or your queries like this
--- Code: --- 'db'=>array(
...
'enableParamLogging' => true,
'enableProfiling' =>true,
),
),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CProfileLogRoute',
'report' => 'summary',
),
--- End code ---
Navigation
[0] Message Index
Go to full version