Extended Core: Exceptions

Aus CodeCoupler Wiki
Zur Navigation springen Zur Suche springen

Every CodeIgniter function will use "show_error()" to cancel execution and send a formatted error message back to the browser. Now you can define to throw an exception instead. To enable this feature use the following code:

$error =& load_class('Exceptions', 'core');
$error->enable_exceptions();

If you want to disable it again do this:

$error->disable_exceptions();