Queries are actually logged at the db level, and you can get an access
to the database object by doing the following:
$db =& ConnectionManager::getDataSource('default');
$db->fullDebug needs to be set to true in order to enable query
logging. Once that happens, any queries which are executed against the
database get logged to $db->_queriesLog. That should contain
everything you need to know.
Just make sure you set fullDebug to false before the application exits
(you can put it in your AppController's afterFilter() callback),
otherwise query debug information will be printed at the bottom of the
page.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---