How can you enable profiler in CodeIgniter for debugging purposes?

  • $this->config->item('enable_profiler', TRUE);
  • $this->enable_profiler(TRUE);
  • $this->load->library('profiler');
  • $this->output->enable_profiler(TRUE);
To enable the profiler in CodeIgniter, you use the $this->output->enable_profiler(TRUE); method. This will display a report at the bottom of your pages, showing benchmark results, queries, and more.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *