views:

35

answers:

2

Hi There,

Was wondering if there is an easier way to see the queries are being being run by my models?

I know the alternate options are xDebug and Firebug but was wondering an easier method.

Anyone?

Thanks

+4  A: 

using Zend_Db_Profiler_Firebug is very easy look at :

http://www.peacocksuit.com/blog/2008/09/02/zend-framework-logging-database-queries-to-firebug/

Haim Evgi
+1 - Very easy to set up this method purely via config / application resources (no code required). I've had issues with debug toolbar messing up client-side too much, plus it doesn't work with non-HTML responses.
Adrian Schneider
A: 

The ZF debug bar adds an overlay to your page and provides info on file usage, memory usage and which database calls were made when the page was loaded:

http://jokke.dk/software/zfdebug

Bryan M.