Error handling

From: Date: Sun, 21 Jul 2002 18:51:13 +0000
Subject: Error handling
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5370@lists.php.net to get a copy of this message
Hello, Any plans on augmenting Smarty's error handling? For example, being able to register an error handler function (ie. $smarty->error_handler = 'foobar';) - default would be PHP's error system. And maybe have a defined array of Smarty errors and pass the smarty object to the error function. Right now PHP's error handling functions can be used, but only one error value is passed (E_USER_WARNING), the error messages needs to be parsed (for "Smarty error:" or "Smarty plugin error:") to determine whether it's from smarty, and there isn't any access to the smarty object (unless it's global). Thanks, Gerard

« previous php.smarty.general (#5370) next »