Re: [SMARTY] Appending and prepending on a section?
| From: | Travis Low | Date: | Wed, 31 Jul 2002 03:10:18 +0000 |
| Subject: | Re: [SMARTY] Appending and prepending on a section? | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5525@lists.php.net to get a copy of this message | ||
I don't understand what you mean when you say "[section] messes up associative arrays". Would you please elaborate?
cheers,
Travis
Hendy Irawan wrote:
smarty-general,-- Travis Low <mailto:travis@dawnstar.org> <http://dawnstar.org/travis>{section name=somesection loop=$variable} {if $smarty.section.somesection.first}<ul>{/if} <li>{$variable[somesection].name}</li> {if $smarty.section.somesection.last}</ul>{/if} {sectionelse}Is there a similar way to do this on {foreach} ?? I wonder why people like to use section. It messes up associative arrays. I prefer to use foreach no matter it's associative or simply indexed. Salam hangat, Hendy Irawan - www.GaulDong.NET Kantor: (021) 5260467 [SoftVation] Kos: (021) 5261839 [kamar 3]There were no names!{/section}