Re: displaying unassigned variables
| From: | Monte Ohrt | Date: | Fri, 09 Feb 2001 18:07:43 +0000 |
| Subject: | Re: displaying unassigned variables | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-110@lists.php.net to get a copy of this message | ||
I guess I'm thinking of a different need here.... If a designer
misspells a var like so:
{$artcleName}
And they don't see any output in the template, will they need help
figuring out what is going on?
Hojtsy Gabor wrote:
>
> 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/
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/