Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Report
#1

(This post was last modified: 02-11-2015, 10:20 AM by cedric.)

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
Reply
#2

New version released
Reply




Theme © iAndrew 2016 - Forum software by © MyBB