Re: [SMARTY] To loop or don't loop
| From: | Robert Amos | Date: | Tue, 28 May 2002 03:21:08 +0000 |
| Subject: | Re: [SMARTY] To loop or don't loop | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4411@lists.php.net to get a copy of this message | ||
you can put whatever PHP code inside your block plugin you like, if you want
it to loop, you just have to write your own loop code in.
-bok
On 28/5/02 8:59 AM, nelson banged a keyboard and produced the following
weird but readable email:
> Hi,
> I want to loop a recordset, but smarty don't support it, I haved to
> put it in an array and then loop the array. The only loop methods are
> "for each" and "section" but they loop with arrays....:-(, and can't
> make a block plugin because the blocks dont loop, only process one time...
> Will smarty support looping blocks plugins? or some section that
> don't iterate over an array?
>
> TIA
> :: Nelson ::
>