Re: [SMARTY] {section} with array that doesnt start with index 0

From: Date: Sun, 18 Aug 2002 20:34:49 +0000
Subject: Re: [SMARTY] {section} with array that doesnt start with index 0
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5741@lists.php.net to get a copy of this message
> But with the {foreach} loop, I had some layout errors: after every loop > I print a "<br>" (or something else). But I don't want that when the > foreach ends (so at the last loop). Since foreach doesn't support "{if > $smarty.section.games.last <> true}", I had to convert my foreach into a > section. You will find that $smarty.foreach.games.last will do what you need here (in place of $smarty.section...} - although it doesn't seem to be documented. Mark Rogers Quarella Ltd

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