Output the last Db Query

Hi all,

All is said in the title.

Is there a way to output the last Db Query ?


look here

Hummm, I’m little bit confuse. :-[

Nevertheless, thanks rudenich. I’m getting old. (even if I made a search on “last db query” on forum without success)

You can use CDBCommand->text (IIRC), if only you could get at it.

I was going to post a solution when I realized that there is no obvious (to me as a Yii beginner) way other than just rely on the log.