codeigniter query Profiling - To enable the profiler
Sure, here are the steps to enable the profiler in CodeIgniter query profiling:
- Open the CodeIgniter configuration file located at application/config/config.php.
- Find the line that says $config['enable_query_strings'] and set it to TRUE.
- Create a new controller method to activate the CodeIgniter profiler like this:
public function enable_profiler() {
$this->output->enable_profiler(TRUE);
}
- You can now call the enable_profiler method in your controller to enable the profiler for the particular page you want to profile.