knowing Last query

Hi all,

I’m using Active Records and I just would like to know, if there is a mean to know the last generated query.

Just for "debuging" when creating "complex" query.


You can configure logger to show it at the bottom of the page (or write it to log file / db):



        'enableParamLogging' => true,













Thanks that was exactly I’m looking for… :)

What if i need to display only one last query?