Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Problem: I am trying to enable Zend_Db_Profiler from a FC plugin. Currently I can't get this working, in that I get no output to the firebug developer console as I would have expected. I have had this working before, but obviously I have something wrong!
- The Front Controller plugin is definitely getting called and run correctly.
- FC Plugin
- =========
- public function routeStartup(Zend_Controller_Request_Abstract $request)
- {
- $db = Zend_Db_Table_Abstract::getDefaultAdapter();
- $profiler = new Zend_Db_Profiler_Firebug('All DB Queries');
- $profiler->setEnabled(true);
- $db->setProfiler($profiler);
- }
- Application.ini
- ===============
- resources.db.adapter = PDO_MYSQL
- resources.db.params.host = <removed>
- resources.db.params.username = <removed>
- resources.db.params.password = <removed>
- resources.db.params.dbname = <removed>
- resources.db.isdefaultadapter = true
- resources.frontController.plugins[] = "Plugin_Profiling"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement