[eluser]gabe[/eluser]
Thanks to all for the replies.
I am using the latest PHP5 on an Ubuntu Gutsy server. So the __construct problem seemed unlikely. Also, with regards to the post by 'ontguy' I think your solution sounds reasonable, but not for me.
I wanted to extend the the CI_Controller to enable profiling globally on the dev environment, this way when I copy to the live site I can simply exclude my controller and profiling is disabled. If I make changes to each controller then they would end up on the live site and I have to keep manually disabling profiling.
Thanks to Michael Wales, it seemed possible, but even changing from __construct() didn't help, I've now got the following in system/application/libraries/MY_Controller.php:
Code:
<?php
class MY_Controller extends Controller
{
function MY_Controller()
{
parent::Controller();
$this->output->enable_profiler(TRUE);
}
}
?>