Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 825 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 825 Bytes

Dibi custom profiler for CodeIgniter 2

Included CodeIgniter custom Profiler class and custom Profiler for Dibi will allow you to see SQL queries and Exceptions ran through dibi database layer in CodeIgniter Profiler output.

It has a same code highlighting as native CI queries overview.

  1. put MY_Profiler.php into your CI application_folder/libraries
  2. turn on CI Profiler output in some Controller with $this->output->enable_profiler(TRUE);
  3. assign CodeIgniterDibiProfiler to Dibi as a Profiler with $profiler = new CodeIgniterDibiProfiler; dibi::getConnection()->setProfiler($profiler);

Then you'll see this section (screenshot) in CI Profiler output.