Distrust wrote
> In CakePHP I can use (in a view):
> $this->element('sql_dump');
> 
> But how to do something similar in Zend 2.0? I want to preview all the
> queries (generated by the script) in the exact form in which they are sent
> to the database. I'm using AbstractTableGateway.

In Zend1 you could use Query Profiler to have all the SQL queries output in
the Browser's console log or on the screen. Currently ZF2 does not provide
that Profiler plugin yet. You could try to use this Module though:
https://github.com/bjyoungblood/BjyProfiler
<https://github.com/bjyoungblood/BjyProfiler>  





-----
Cheers,
--
Luke Mierzwa
--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF2-How-to-dump-all-sql-queries-executed-by-Zend-tp4656932p4656937.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to