Deafult:"None" and set_error_handler
| From: | Nick Clarke | Date: | Thu, 24 Mar 2005 10:26:31 +0000 |
| Subject: | Deafult:"None" and set_error_handler | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12363@lists.php.net to get a copy of this message | ||
Hi,
I have just started using Smarty as my new template engine. It is a 10000 time improvement on what
I have been using up until now. I have run into a little problem though when using defaults
<!--{$TMP|deault:None}-->
When I create a simple standalone script all works well and runs without a problem. Here comes the
BUT :)
When I plug it into my framework it kills dies!
I get errors saying:
Undefined index: TMP (Error Code: 8) File: (/smarty/templates_c/%%89^893^893B2242%%home.tpl.php)
Line: (43)
If I turn off my custom php error handler (set_error_handler) it works without a problem!!!
So I guess the question is has anyone used Smary and a custom error handler, as I guess Smarty is
raising a warning or error when in-fact I just want it to set the default.
Thanks in Advance,
Nick
Send instant messages to your online friends http://uk.messenger.yahoo.com