schrenzor
(Rene Ponudic)
March 21, 2009, 2:37pm
1
Is there a way to show the query, which was really executed?
Let's look at this example:
Database::model()->find("test = ':test'', array('test' => 'name'));
Is there a way to show the "real" query like the following?
SELECT * FROM database WHERE test = 'name'
tri
(tri - Tommy Riboe)
March 21, 2009, 2:53pm
2
Have a look at this page:
http://www.yiiframew …/topics.logging
For instance, use CFileLogRoute. You'll find the log file in the protected/runtime directory.
/Tommy
schrenzor
(Rene Ponudic)
March 23, 2009, 6:48am
3
Thanks for that hint.
Is there a way to retrieve all messages of a certain type and category in my application, so that I can display i.e. all 'info, trace' - messages of 'system.db' at the footer of the website?
I would really appreciate that…
qiang
(Qiang Xue)
March 23, 2009, 3:05pm
4
The guide has explained that. You can define categories and levels filters to decide which messages to display.