Re: displaying unassigned variables
| From: | Hojtsy Gabor | Date: | Fri, 09 Feb 2001 18:02:59 +0000 |
| Subject: | Re: displaying unassigned variables | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-109@lists.php.net to get a copy of this message | ||
Hi!
> Currently, if you attempt to display an unassigned variable in Smarty,
> it simply displays nothing in place of the tag. Would there be any
> benefits to anyone if there was an option to display nothing, display an
> error, or just display the tag? I've seen other template engines do
> this, but I'm not sure of its usefullness.
It can be a modifier, so in in tha rare cases where this
is important, you can set. It is not to common, to require
a variable, but it can be good for debugging reasons...
{$important|needed}
Hojtsy Gabor [Goba]
________________________________________________________________________
http://weblabor.hu/ :|: http://hu.php.net/ :|: http://webmester.hix.com/