Re: [nyphp-talk] Debugging Zend_Db SQL

2007-08-14 Thread David Mintz
And you will want 'profiler' => true in your db config. On 8/10/07, Brian Dailey <[EMAIL PROTECTED]> wrote: > > For future reference, the easiest way (in postDispatch()) was: > > $dbAdapter = Zend_Registry::get( 'dbAdapter' ); > $profiler = $dbAdapter->getProfiler( ); > $query = $profiler->getLast

Re: [nyphp-talk] Debugging Zend_Db SQL

2007-08-10 Thread Brian Dailey
For future reference, the easiest way (in postDispatch()) was: $dbAdapter = Zend_Registry::get( 'dbAdapter' ); $profiler = $dbAdapter->getProfiler( ); $query = $profiler->getLastQueryProfile( ); echo $query->getQuery( ); - Brian Jon Baer wrote: From what I recall most of the framework objects

Re: [nyphp-talk] Debugging Zend_Db SQL

2007-08-09 Thread Jon Baer
From what I recall most of the framework objects should already have a __toString() overload on them so you can just echo/dump the select itself. - Jon On Aug 9, 2007, at 11:34 AM, Brian Dailey wrote: I'm just starting to dabble with Zend's framework, and I don't see an easy way to check

[nyphp-talk] Debugging Zend_Db SQL

2007-08-09 Thread Brian Dailey
I'm just starting to dabble with Zend's framework, and I don't see an easy way to check what the SQL output is when I'm executing a statement. I'd like to just output the whole query so I can monitor what it's sending. Does anyone know a quick & dirty way to do this? -- Thanks! - Brian Daile