Profiler anywhere

Derek Jones edited this page Jul 5, 2012 · 11 revisions
Clone this wiki locally

Category:Help::TipsAndTricks | Category:Help::Profiler

If you are using div and css to construct your html pages then the profiler will hide behind your divs. But if you are reading this then you know that probably already.

Here is the easiest solution I could come up with.

#Controller:
function __construct() {
    parent::Controller();
    $this->load->library('profiler');

$this->load->view('blank');
}

#anywhere you like in your view file:
// view/blank.php
if(isset($this->profiler)){print($this->profiler->run());}

Contact me link Forum Link CI_TaMeR SVN