Advertisement
Guest User

Untitled

a guest
Oct 7th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. 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!
  2. The Front Controller plugin is definitely getting called and run correctly.
  3.  
  4.  
  5. FC Plugin
  6. =========
  7. public function routeStartup(Zend_Controller_Request_Abstract $request)
  8. {
  9. $db = Zend_Db_Table_Abstract::getDefaultAdapter();
  10. $profiler = new Zend_Db_Profiler_Firebug('All DB Queries');
  11. $profiler->setEnabled(true);
  12. $db->setProfiler($profiler);
  13. }
  14.  
  15.  
  16. Application.ini
  17. ===============
  18. resources.db.adapter = PDO_MYSQL
  19. resources.db.params.host = <removed>
  20. resources.db.params.username = <removed>
  21. resources.db.params.password = <removed>
  22. resources.db.params.dbname = <removed>
  23. resources.db.isdefaultadapter = true
  24. resources.frontController.plugins[] = "Plugin_Profiling"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement