Re: [SMARTY] Block function

From: Date: Sun, 23 Mar 2003 13:17:35 +0000
Subject: Re: [SMARTY] Block function
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8847@lists.php.net to get a copy of this message
Hello Haber, {section name=count loop=$var} // you have iteration or loop or ... in the doc {if $smarty.section.count.iteration<15} <DIV ALIGN="{$var[count].align}">{$var[count].text}</DIV> {/if} {/section} -- Cordialement, Elgi Le dimanche 23 mars 2003 à 13:14:10, vous écriviez : HJ> Hi! HJ> I want to write a block function, but I need evaulate the content, like this: HJ> {myfunction innervar='var' loop=15} HJ> <DIV ALIGN="{$var.align}">{$var.text}</DIV> HJ> {/myfunction} HJ> The inner content variables changed all running, so I need evaulate by 15 times the expression. HJ> How I make this? HJ> Cow

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