RE: [SMARTY] Error handling
| From: | G | Date: | Mon, 22 Jul 2002 17:35:18 +0000 |
| Subject: | RE: [SMARTY] Error handling | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5383@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
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>