Re: displaying unassigned variables
| From: | Joris Trooster / Interstroom | Date: | Fri, 09 Feb 2001 17:47:46 +0000 |
| Subject: | Re: displaying unassigned variables | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-107@lists.php.net to get a copy of this message | ||
Not me.
Joris
----- Original Message -----
From: "Monte Ohrt" <monte@ispi.net>
To: "Sylvain Bergé" <sylvain.berge@medasys.fr>
Cc: <smarty@lists.ispi.net>
Sent: Friday, February 09, 2001 6:39 PM
Subject: [smarty] Re: displaying unassigned variables
> Smarty can sure do that, I'm just looking for some justification. Would
> anyone use it? :-)
>
> Also keep in mind, Smarty isn't just for HTML output...
>
> Sylvain Bergé wrote:
> >
> > Monte Ohrt wrote:
> >
> > > 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.
> >
> > Why not choose between :
> >
> > - displays nothing
> > - display an error
> > - display a comment in the HTML code
> > Sylvain
> >
> > /* In a world without walls and borders, who needs windows and gates ?
*/
>
> --
> Monte Ohrt <monte@ispi.net>
> http://www.ispi.net/
>
> ---
> You are currently subscribed to smarty as: trooster@interstroom.nl
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
>