Re: HTTP_*_VARS access
| From: | Monte Ohrt | Date: | Thu, 28 Jun 2001 15:53:51 +0000 |
| Subject: | Re: HTTP_*_VARS access | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1051@lists.php.net to get a copy of this message | ||
How about a shortcut syntax:
{=foo=}
will print foo, searching through all the request variables in order of
precedence (env,cookie,post,get or whatever the order is)
Andrei Zmievski wrote:
>
> So, it looks like people would prefer to have one $smarty object they
> can access, but still:
>
> $smarty.request.get.x
> $smarty.request.cookies.x
>
> or
>
> $smarty.get.x
> $smarty.cookies.x
>
> ?
>
> The first way is more logical since all these vars pertain to current
> request, the second one is shorter.
>
> -Andrei
> * On the keyboard of life, always keep one finger on the escape key. *
>
> ---
> 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/