-
Notifications
You must be signed in to change notification settings - Fork 0
Profiler anywhere
Updating my contributions on the wiki has become a nightmare. Please check my svn at google for the latest revisions: http://code.google.com/p/tamer/ [url=http://code.google.com/p/tamer/]CI_TaMeR SVN[/url]
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.
[code] #Controller: function __construct() { parent::Controller(); $this->tpl['profiler'] = TRUE; if(isset($this->tpl['profiler']){ $this->load->library('profiler'); } $this->load->view('layout/blank', $this->tpl); }
#anywhere you like in your view file: // view/layout/blank.php if(isset($profiler)){ $p = $this->profiler->run(); print($p); } [/code]