This is how I do it with a profiler.php config file.
Top of index.php or some place else.
index.php
PHP Code:
/**
* ------------------------------------------------------------------------
* Profiler - true / false set to true to enable.
* ------------------------------------------------------------------------
*/
define('PROFILER', false);
MY_Controller
PHP Code:
/**
* --------------------------------------------------------------------
* __construct()
*
* Class Constuctor PHP 5+
*
* @access public
* @internal param $string
* @return \Base_Controller
*/
public function __construct()
{
parent::__construct();
// use profiler
$this->output->enable_profiler(PROFILER);
}
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )