RE: custom error handler w/ Smarty
| From: | Alexander, Jason | Date: | Fri, 09 Mar 2001 22:31:28 +0000 |
| Subject: | RE: custom error handler w/ Smarty | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-362@lists.php.net to get a copy of this message | ||
Well, I found it:
In Smarty_Compiler.class.php, line 466 you attempt to unset a variable
that's never defined. Which, normally, it's not a big deal, until I
attempted to implement my own error handler. In which case, it caught this.
Add this line before it:
$output .= "\$_sections = \"\";";
And, all is well.
-Jason
-----Original Message-----
From: Alexander, Jason [mailto:jalexander@aivia.net]
Sent: Friday, March 09, 2001 2:01 PM
To: 'smarty@lists.ispi.net'
Subject: [smarty] custom error handler w/ Smarty
Hey all,
I'm having issues implementing my own customer error handler with Smarty.
I'm finding that if I try to handle it, it catches a ton of errors that
(originally) aren't there. Comment out the error handler file include, and
all works fine (as before). Is there an issue with Smarty that it suppresses
errors and handles errors on it's own? I'm guessing I'm overriding the
internal error handling of Smarty, and that's what is causing issues.
Thanks,
-Jason
---
You are currently subscribed to smarty as: jalexander@aivia.net
To unsubscribe send a blank email to $subst('Email.Unsub')
Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/