Re: [SMARTY] assign in included files
| From: | Norbert Röcher | Date: | Fri, 17 May 2002 19:55:22 +0000 |
| Subject: | Re: [SMARTY] assign in included files | ||
| References: | 1 2 3 4 5 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4290@lists.php.net to get a copy of this message | ||
"Andrei Zmievski" <andrei@ispi.net> schrieb im Newsbeitrag
news:20020517135957.D18246@ispi.net...
> On Fri, 17 May 2002, Monte Ohrt wrote:
> > What if we did this:
> >
> > {assign var="foo" value="bar" scope=global}
> >
> > and if scope is global, assign this variable to both the current
> > $_tpl_vars and the saved $_tpl_vars? Or is this method of scope
saving
> > handled ideally in the first place?
>
> I have a problem with this on a conceptual level -- I have yet to
see a
> good case for why the included template should assign variables that
the
> parent template will access.
Exactly. A variables source must already be available in the including
(parent) template, to assign it to an include. So, the whole
discussion on that topic is foobar.
Norbert