Re: [SMARTY] To loop or don't loop
| From: | Jason Sweat | Date: | Tue, 28 May 2002 03:28:06 +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-4412@lists.php.net to get a copy of this message | ||
If your result set is not an array explicitly, then it might be a class
object with the full results stored in an array as a property of the class.
You might be able to pass this array ($resultset->_result or some such),
rather than the object itself, and loop over it using the normal template
functions.
Jason
----- Original Message -----
From: "nelson" <nelson@kpanic.com.ar>
To: <smarty-general@lists.php.net>
Sent: Monday, May 27, 2002 5:59 PM
Subject: [SMARTY] To loop or don't loop
> 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 ::
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>