CodeIgniter Forums
Enable profiler globally? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Enable profiler globally? (/showthread.php?tid=15807)



Enable profiler globally? - El Forum - 02-15-2009

[eluser]dobomode[/eluser]
Currently, I am including this line in the constructor of every controller:

Code:
$this->output->enable_profiler(TRUE);

I would like this setting to be global so I can enable/disable it for all controllers quickly. Is there an easy way to do this?

I guess I can define a boolean constant and pass it as an argument of enable_profiler within each controller. This is not very elegant though. I was hoping there is a configuration setting I can set.


Enable profiler globally? - El Forum - 02-16-2009

[eluser]pistolPete[/eluser]
There exists an almost exactly named topic, just use the forum search:
Enabling Profiler globally ?