CodeIgniter Forums
CodeIgniter Report - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: CodeIgniter Report (/showthread.php?tid=1083)



CodeIgniter Report - cedric - 02-10-2015

Hello!

I maked a library to store and retrieve/display your error or information messages for CodeIngniter v2.2.x, multi-language, display time, save log in parallel, template, etc. I use this library for all of my CI projects. I hope that help you.

Sources and complete documentation:
https://github.com/Cedric-ruiu/CodeIgniter-Report

Quick usage:

PHP Code:
$this->load->library('Report');

$this->report->set(FALSE'Ow you make a little mistake...');
$this->report->set(TRUE'Congratulation guys this time it\'s good!');

//Reload page can be possible at this time

echo $this->report->get_all(); 

And quick custom usage:

PHP Code:
$this->report->enable_log()->set = array(FALSE'Ow you make a little mistake...');
$this->report->set TRUE// Use the default success message
$this->report->set(2'Warning guy, you have maybe walked on something')->disable_log();
$this->report->set('3''Good info: Use your brain, but not forget your heart');

echo 
$this->report->with_time()->set_template('yes-i-can-use-my-template')->get_all(); 

I welcome feedback: any bugs, security issues and suggestions for future improvements. Wink


RE: CodeIgniter Report - cedric - 04-21-2015

New version released