Re: [SMARTY] assign in included files

From: Date: Fri, 17 May 2002 18:59:57 +0000
Subject: Re: [SMARTY] assign in included files
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4286@lists.php.net to get a copy of this message
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. -Andrei http://www.gravitonic.com/ "The only true currency in this bankrupt world is what we share with each other when we're uncool." -- Lester Bangs, from the film 'Almost Famous'

« previous php.smarty.general (#4286) next »