Re: HTTP_*_VARS access
| From: | Monte Ohrt | Date: | Thu, 28 Jun 2001 16:20:55 +0000 |
| Subject: | Re: HTTP_*_VARS access | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1058@lists.php.net to get a copy of this message | ||
Andrei Zmievski wrote:
>
> On Thu, 28 Jun 2001, Monte Ohrt wrote:
> > 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
>
> I don't think you can automatically say it's "easy to read &
> understand"
> because the user will have to be thinking, "Now, what do the two equal
> signs on both sides mean? Is it different from config var?"
Ok, so is that any better than than having {$smarty.get.foo} in the
template? Is this syntax going to cause problems in the future with how
we use the dot "." syntax? It does take away from the variable namespace
too.
I'm playing devils advocate btw, I'm not trying to shoot down ideas,
just create discussion. If we do or don't want to handle this a certain
way, lets nail down exactly why.
Monte