Tutorial by Examples

This function will display the error message supplied to it using the following error template: Path - application/errors/error_general.php The optional parameter $status_code determines what HTTP status code should be sent with the error. Syntax show_error($message, $status_code, $heading = '...
This function will display the 404 error message supplied to it using the following error template: Path - application/errors/error_404.php The function expects the string passed to it to be the file path to the page that isn't found. Note that CodeIgniter automatically shows 404 messages if cont...
This function lets you write messages to your log files. You must supply one of three "levels" in the first parameter, indicating what type of message it is (debug, error, info), with the message itself in the second parameter. Example: if ($some_var == "") { log_message('...

Page 1 of 1