Welcome to TinyMVC, the tiny PHP Framework.

Custom Error Handler

When TMVC_ERROR_HANDLING is set to 1 in index.php, TinyMVC installs two handlers:

Customize the TinyMVC handlers

To change how errors are handled or displayed, override the handler files:

TinyMVC looks in /myapp/plugins/ (and /myfiles/plugins/) before /sysfiles/plugins/, so your copies are used instead of the built-in ones, and they survive upgrades of /sysfiles/.

Use your own handlers

To handle errors entirely on your own, set TMVC_ERROR_HANDLING to 0 in index.php and register your handlers before TinyMVC runs:

define('TMVC_ERROR_HANDLING',0);
 
set_exception_handler(function($e) {
  error_log($e->getMessage());
  echo 'Sorry, something went wrong.';
});
TinyMVC is licensed under the GNU LGPL license.
This page was rendered in 0.00031 seconds.