Forums / Developer / Variables scope / Comment39630
Paul Borgermans
Thursday 15 January 2004 11:29:16 am
Oh yeah,
The error has nothing to do with namespaces here: variables from "outer sections" including the "root" of your template should always be visible.
To put another example illustrating namespaces:
{let myvar=2} {section name=innersection} {let myvar=1} <p>root myvar: {$myvar}</p> <p>section myvar: {$innersection:myvar}</p> {/let} {/section}{/let}
Nice, right?
-paul
eZ Publish, eZ Find, Solr expert consulting and training http://twitter.com/paulborgermans