Welcome Guest, Not a member yet? Register   Sign In
Looking for a database hook to log database queries to firebug console with firephp
#1

[eluser]Unknown[/eluser]
Years back I wrote my own MVC-esque framework. I eventually decided CodeIgniter was better :p but one thing I miss from this framework is I wrote some debug code into the core database model that logged all database calls along with execution time to the FireBug console using FirePHP. Don't worry this was only enabled if the environment variable was set to development or staging.

I am looking for something similar in CodeIgniter or some guidance on how to cleanly add this sort of thing in as I am not about to hack CI_DB_driver:Confusedimple_query so I can keep my upgrade path clean.

This is a very useful perspective for debugging and performance optimization. Please advise.
#2

[eluser]Unknown[/eluser]
Dumb question. Solution: $this->output->enable_profiler(TRUE)




Theme © iAndrew 2016 - Forum software by © MyBB