CodeIgniter Forums
Profilier doesn't display when enabled - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Profilier doesn't display when enabled (/showthread.php?tid=32999)



Profilier doesn't display when enabled - El Forum - 08-11-2010

[eluser]GeXus[/eluser]
For some reason when I enable the profilier it doesn't show anything on the page. It used to, but now for some reason it doesn't.

I'm just adding
Code:
$this->output->enable_profiler(true);
to my controller.

Any ideas? Thanks!


Profilier doesn't display when enabled - El Forum - 08-12-2010

[eluser]Clooner[/eluser]
It sounds to me like a error in your code.

Enable PHP Error display in your index.php
Code:
error_reporting(E_ALL);
ini_set('display_errors', 1);
Make sure to turn this of in the live version!


Profilier doesn't display when enabled - El Forum - 08-12-2010

[eluser]verynewtothis[/eluser]
I am with clooner but just for the confirmation, was it placed at a location (or logic) that is getting executed?

For example this will not display profiler information:
Code:
if (1==0):
    $this->output->enable_profiler(true);
endif;