undocumented foreach properties
| From: | - | Date: | Tue, 18 Feb 2003 12:21:37 +0000 |
| Subject: | undocumented foreach properties | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-714@lists.php.net to get a copy of this message | ||
hi there,
I saw that the "last" property is working for the {section}, but does not for {foreach} (I mean $smarty.foreach.name_of_foreach.last and the like) - then taken a look at the Smarty compiler source. It was great to see that this feature in fact is already included (together with "first" and "iteration"), though it's missing from the docs.
have a nice day,
trajic
www.demoscene.hu