{section} feature request

From: Date: Wed, 26 Jun 2002 15:16:23 +0000
Subject: {section} feature request
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5030@lists.php.net to get a copy of this message
Hi Monte, {section} (and perhaps {foreach}) could IMO use the following enhancement. Background: we here found ourselves typing this far too often: {if sizeof($FOO)} ... printed once ... {section loop=$FOO name=x} ... printed many times ... {/section} ... printed once ... {/if} or {section loop=$FOO name=x} {if $smarty.section.x.first} ... printed once ... {/if} ... printed many times ... {if $smarty.section.x.last} ... printed once ... {/if} {/section} which is even more typing. It would be uber cool if this could be done with st. like this: {section loop=$FOO name=x} ... printed once ... {sectionbody} ... printed many times ... {/sectionbody} ... printed once ... {/section} Keep up the good work! -- FreeBSD 4.6-STABLE 5:08PM up 2 days, 14:08, 11 users, load averages: 0.00, 0.00, 0.00

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