Re: HTTP_*_VARS access

From: Date: Thu, 28 Jun 2001 16:41:07 +0000
Subject: Re: HTTP_*_VARS access
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1068@lists.php.net to get a copy of this message
> 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, 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. But {$smarty...} only takes away one variable. Think of it as: $smarty = array ( "get" => array ( "var1" => "val1", "var2" => "val2", ), "post" => array( "gvar1" => "gvar2" ), etc... ); That way the $smarty.get.var1 usage is visualized. I think this is the best (or with the added .request if needed - but the names are too long with the added .request IMHO). Goba ........................................................... . . . . . Editor of the Hungarian PHP manual, Admin of the Hungarian PHP mirror

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