ZF-4019: Zend_Db_Profiler_Firebug with multiple databases
Description
My page is connected with multiples databases. I activate Zend_Db_Profiler_Firebug as profiler for each one. I enable it for each one. But I only receive the table in Firebug for the first registered database.
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-08-22T14:50:28.000+0000
Scheduling for RC3
Posted by Mickael Perraud (mikaelkael) on 2008-08-26T12:27:46.000+0000
This is not OK :). You try to register multiple times the Plugin (apparently for each db). This code functions:
Posted by Christoph Dorn (cadorn) on 2008-08-26T12:45:14.000+0000
Is it displaying a log entry for each DB? It does work for me. Also see the Zend_Wildfire demo.
While the code calls $controller->registerPlugin repeatedly it is in fact only registered once as the registerPlugin() method throws an exception if the plugin is already registered.
I guess the way I am doing it at the moment is no the "clean" way. Rather than keeping a flag in my code I would prefer to call a method on Zend_Controller_Front called isPluginRegistered().
Let's open a new issue for this if the multiple DB logging is working as intended.
Posted by Mickael Perraud (mikaelkael) on 2008-08-26T13:07:31.000+0000
My problem is with Zend_Db_Profiler_Firebug not with Zend_Log_Writer_Firebug, is that your question?
Without my code, I have nothing in Firebug. With my code, I have the 2 tables in Firebug. Is my response correct?
Posted by Mickael Perraud (mikaelkael) on 2008-08-26T13:16:17.000+0000
I understand: I have xDebug which catch the exception before your try/catch.
Posted by Christoph Dorn (cadorn) on 2008-08-26T13:27:25.000+0000
I should not rely on the exception for control flow. I'll work on a fix. It will probably not make it into 1.6.0, but will be in 1.6.1
Posted by Christoph Dorn (cadorn) on 2008-08-26T13:28:15.000+0000
The issue is resolved other than when xDebug is installed.
Posted by Christoph Dorn (cadorn) on 2008-08-30T21:27:53.000+0000
Fixed with:
Posted by Wil Sinclair (wil) on 2008-09-02T10:39:29.000+0000
Updating for the 1.6.0 release.