Re: HTTP_*_VARS access
| From: | Monte Ohrt | Date: | Thu, 28 Jun 2001 16:23:23 +0000 |
| Subject: | Re: HTTP_*_VARS access | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1060@lists.php.net to get a copy of this message | ||
Andrei Zmievski wrote:
>
> On Thu, 28 Jun 2001, Monte Ohrt wrote:
> > more ideas:
> >
> > {=foo=}
> >
> > prints foo, searches though env/cookie/get/post
> >
> > {=get.foo=}
> >
> > only prints foo if coming from get vars
> >
> > {=post.foo=}
> > {=env.foo=}
> > {=cookie.foo=}
> >
> > same deal. another idea, maybe {=foo.get=} would be more appropriate
> > than {=get.foo=}, decide what comes first?
>
> Is this really much different from $smarty.get.foo?
It is a visual separation in the template between assigned and
environment variables, otherwise it isn't much different.