Part of the EllisLab Network
x
 
Create New Page
 View Previous Changes    ( Last updated by George Petsagourakis )

Profiler anywhere

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