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

Profiler

Category:Core -> Profiler

Tips and tricks

The profiler like the scaffolding feature

Using this code would open the profiler whenever ‘profiler’ is used in the url. Handy for debugging.
Adapt for your own purposes. E.g. you might want to change the word ‘profiler’ into something else like the magic word used for the scaffolding feature.

function Mycontroller(){
  parent
::controller();
  if(
in_array('profiler'$this->uri->segment_array())){
    $this
->output->enable_profiler(True);
  
}

Categories: