forked from bcit-ci/CodeIgniter
-
Notifications
You must be signed in to change notification settings - Fork 4
Profiler anywhere
Derek Jones edited this page Jul 5, 2012
·
11 revisions
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());}