Re: HTTP_*_VARS access
| From: | Monte Ohrt | Date: | Thu, 28 Jun 2001 16:10:37 +0000 |
| Subject: | Re: HTTP_*_VARS access | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1052@lists.php.net to get a copy of this message | ||
That could be. Let's find out why. What is the pros/cons of each?
$smarty.get.foo
pros: doesn't create new syntax
cons: kind of wordy in the template?
{=foo=}
pros: short easy to read & understand
cons: yet another variable syntax
Andrei Zmievski wrote:
>
> On Thu, 28 Jun 2001, Monte Ohrt wrote:
> > 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)
>
> I was under the impression that we wanted to avoid inventing new syntax.
>
> -Andrei
>
> "Everything should be made as simple
> as possible, but not simpler."
> -- Albert Einstein
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/