>From controller:
Configure::write('debug', 2);
$db =& ConnectionManager::getDataSource('default');
$queryCount = $db->_queriesCnt;
Configure::write('debug', 1);
(dirty...)
On Sep 4, 10:05 am, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote:
> Any ideas?
>
> On Sep 3, 2:18 pm, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote:
>
> > How do I, from a controller, count the number of queries made? I would
> > like to log the count of queries without using the table that debug=2
> > prints out.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---