Re: [SMARTY] for-loops without arrays
| From: | messju mohr | Date: | Sat, 19 Jul 2003 12:26:28 +0000 |
| Subject: | Re: [SMARTY] for-loops without arrays | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9932@lists.php.net to get a copy of this message | ||
On Sat, Jul 19, 2003 at 03:54:36AM +0200, Florian Winkler wrote:
> Hi all ,
>
> I want to do something like this in my template :
>
> for($i = 1; $i<= $number; $i++)
> {
> echo "[".$i."]";
> }
>
> how can I realize this :
>
> The start-point is always 1 and I also know the end.
{section name=foo loop=$number}
{$smarty.section.foo.iteration} {* this is your $i *}
{/section}
HTH
messju
> greetz
> fLo
>
> _________________________________________________________________
> Fotos - MSN Fotos das virtuelle Fotoalbum. Allen Freunden zeigen oder
> einfach online entwickeln lassen:
> http://photos.msn.de/support/worldwide.aspx
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php