Re: HTTP_*_VARS access

From: Date: Thu, 28 Jun 2001 16:33:09 +0000
Subject: Re: HTTP_*_VARS access
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1065@lists.php.net to get a copy of this message
On Thu, 28 Jun 2001, Monte Ohrt wrote: > Come to think of it, I like the idea of having a visual separation > between assigned template variables and web server variables. > {$smarty.get.foo} looks much like an assigned variable It will be an assigned variable -- automatically assigned by smarty. > , whereas {=foo=} or {=get.foo=} is a visual separation between the > two variable types, and does not take away from the assigned > namespace. To me, this is follows our template variable syntax. {% %} > for smarty internal variables, {# #} for config vars, and {$ } for > assigned vars. Adding {= =} makes sense for a new variable type. Or at > the very least, maybe we should figure out a way to use {% %} for > these variables. For one, we've never said that {% %} syntax is for smarty internal variables. It's always been used for section properties. Secondly, I think adding yet another syntax will be more confusing to designers (sure, programmers can remember any kind of syntax, look at Perl). Currently we have 3 types of variables and it seems to me to be enough. -Andrei

« previous php.smarty.general (#1065) next »