[SMARTY] Re: a Smarty equivalent of the php 'for'
Pedro <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
Check this page .. second example fits the bill hopefully. http://smarty.php.net/manual/en/language.function.section.php regards pete [email protected] wrote: > Is there a Smarty equivalent of the php 'for'? I could not find so far. > I have an array which I process in a peculiar way, and I just need a > simple counter to turn the cycle and stop at some point, which stop I > can control from within the cycle. At the moment I use a combination of > 'foreach', without using the 'item' and a 'counter' in addition which > provides the values I need, but looks primitive and I can't stop it. -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php