CI_Output::enable_profiler()

enable_profiler([$val = TRUE])

Parameters:
  • $val (bool) – Whether to enable or disable the Profiler
Returns:

CI_Output instance (method chaining)

Return type:

CI_Output

Permits you to enable/disable the Profiler, which will display benchmark and other data at the bottom of your pages for debugging and optimization purposes.

To enable the profiler place the following line anywhere within your Controller methods:

$this->output->enable_profiler(TRUE);

When enabled a report will be generated and inserted at the bottom of your pages.

To disable the profiler you would use:

$this->output->enable_profiler(FALSE);
doc_CodeIgniter
2016-10-15 16:31:48
Comments
Leave a Comment

Please login to continue.