Skip to content

Dibi custom profiler for CodeIgniter 2 to display SQL and Exceptions in CI 2 Profiler overview, with the same format as native queries profiler in CI 2.

Notifications You must be signed in to change notification settings

dasim/dibi-profiler-for-codeigniter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Dibi custom profiler for CodeIgniter 2 to display SQL and Exceptions in CI 2 Profiler overview, with the same format as native queries profiler in CI 2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages