Manu Ganji

Debugging snippet for code igniter

Use this snippet to profile/debug a code igniter from any point in the app. The ideal place for this is in the controller right after you enter it.

$this->db->save_queries = TRUE;
$this->output->enable_profiler(TRUE);