Need both Section and Foreach functionality.

From: Date: Wed, 16 Apr 2003 21:39:37 +0000
Subject: Need both Section and Foreach functionality.
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9285@lists.php.net to get a copy of this message
Hi. Long time reader, first time poster. I have a {foreach ...} and I need to be able to get which loop I'm on inside of it. I've tried stuff like: $smarty.foreach.foreach_name.index $smarty.foreach_name.index I've also looked through all the messages I could find in the newsgroup. I have an associated array, but I also need to know which iteration of the loop I'm on. Is there currently a way to do this? Thanks. -- Rob

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