Author Topic: How to echo query in yii framework  (Read 9789 times)

perks

  • Newbie
  • *
  • Posts: 11
How to echo query in yii framework
« on: October 09, 2012, 12:24:01 PM »
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

  • Newbie
  • *
  • Posts: 39
Re: How to echo query in yii framework
« Reply #1 on: October 11, 2012, 10:14:57 AM »
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: [Select]
'db'=>array(
...
'enableParamLogging' => true,
'enableProfiling' =>true,
),

),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CProfileLogRoute',
'report' => 'summary',
),

 

X

Do you know?

IfandBut.com is place where you can meet serious webmasters and make new ties to grow your business.
Join Now!