Extended Core: Exceptions: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Tm (Diskussion | Beiträge) Die Seite wurde neu angelegt: „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 e…“ |
Tm (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 9: | Zeile 9: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
$error-> | $error->disable_exceptions(); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Aktuelle Version vom 21. August 2012, 11:01 Uhr
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();