Re: [SMARTY-DEV] Making variables accessible to the template in a block function

From: Date: Fri, 21 Feb 2003 12:26:59 +0000
Subject: Re: [SMARTY-DEV] Making variables accessible to the template in a block function
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-797@lists.php.net to get a copy of this message
your assumptions are correct. your block function gets called two times first with empty $content, second with $content containing the *already evaluated* contents between {repeat} and {/repeat}. so, this is a limitation.
Uargh. That's a pretty nasty limitation since I won't be able to access arrays then, like: {repeat times=10 counter=time} {$myFirstVar.$time} {$mySecondVar.$time} {/repeat} Any other takers on alternatives to archive the above within the Smarty limitations? -- David Heinemeier Hansson http://www.loudthinking.com/ -- Broadcasting Brain

« previous php.smarty.dev (#797) next »