Skip to content

sylynder/error-handler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Webby Beautiful Error Handler

PHP Error Handler

Error Handler Image

ErrorHandler is an error handler class improved to work with Webby PHP Framework.

It provides a pretty error interface that helps you debug your project.

Usage

Currently it will not work with any PHP framework except Webby. If you want to use the original project, go to this url:

BrqErrorHandler https://github.com/brqt/

How it is used in Webby

It is called inside CodeIgniter.php found at /vendor/sylynder/framework/CodeIgniter.php

/*
 * ------------------------------------------------------
 *  Define a custom error handler so we can log PHP errors
 * ------------------------------------------------------
 */
set_error_handler('_error_handler');
set_exception_handler('_exception_handler');
register_shutdown_function('_shutdown_handler');

if (config_item('beautiful_error_handler')) {
	
	// Require Beautiful ErrorHandler
	require_once "ErrorHandler.php";

	// Use Beautiful Error Handler
	new ErrorHandler;
}

License

MIT

About

Webby Beautiful Error Handler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%