Re: [SMARTY] Re: horizontal loops with smarty
| From: | Mark Watkins | Date: | Thu, 24 Feb 2005 15:11:04 +0000 |
| Subject: | Re: [SMARTY] Re: horizontal loops with smarty | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12259@lists.php.net to get a copy of this message | ||
On Thursday 24 February 2005 6:52 pm, Willy Mularto wrote:
> Hi,
> Sorry but this solution doesn't work with me. Thanks anyway for the reply,
> I hope there's another solution for me :)
>
>
> Regards
>
> Willy
One (lame) way I use in the middle of loops (when I'm feeling lazy and havn't
had enough coffee :-) is with cycle..
{foreach blahblahblah}
{$num}
{cycle values=",,,,<br>"}
{/foreach}
It's not very flexible, but seeing it's a string value, you could build up the
string in a variable before hand.
/ Mark W
Smarty and PHP5 rock.