RE: displaying unassigned variables
| From: | Maciek Uhlig | Date: | Fri, 09 Feb 2001 17:53:54 +0000 |
| Subject: | RE: displaying unassigned variables | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-108@lists.php.net to get a copy of this message | ||
Maybe do it like PHP does: if error_reporting is low, display nothing. If it
is high, display warning. Displaying the tag is useless IMHO.
Maciek
> -----Original Message-----
> From: mohrt@ispi.net [mailto:mohrt@ispi.net]On Behalf Of Monte Ohrt
> Sent: Friday, February 09, 2001 6:18 PM
> To: smarty@lists.ispi.net
> Subject: [smarty] displaying unassigned variables
>
>
> 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.
>
> --
> Monte Ohrt <monte@ispi.net>
> http://www.ispi.net/
>
> ---
> You are currently subscribed to smarty as: muhlig@us.edu.pl
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
>