Re: [SMARTY] To loop or don't loop
| From: | Papp Gyozo | Date: | Tue, 28 May 2002 07:37:27 +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-4413@lists.php.net to get a copy of this message | ||
2002. május 28. 00:59 dátummal nelson ezt írta:
>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?
>
I recommend to search the archives I posted a solution to loop on db
result set with Smnarty, though it's debatable use of Smarty plugin
architecture (more and more logic in templates, lack of error handling).
>TIA
>
>:: Nelson ::
--
Papp, Győző
- pgerzson@freestart.hu