Re: [SMARTY] looping without array?

From: Date: Fri, 18 Apr 2003 20:08:23 +0000
Subject: Re: [SMARTY] looping without array?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9328@lists.php.net to get a copy of this message
On Fri, Apr 18, 2003 at 09:04:24PM +0200, Wilhelm Kutting wrote: > Hi > i like to make a loop inside Smarty without an array. > > It should work like this: > > $numpages= 5 > > hier ist the problem(just symbolic) > [loop $start = 1 $end= 5 $step=4] > echo $num=$num+$step > [/loop] not 100%. you will need $numitems instead of $numpages {section name=num loop=20 start=1 step=4} {$smarty.section.num.index} {/section}' gives 1 5 9 13 17 HTH messju > hope this works in smarty? > > thanx > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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