RE: Limiting the section loop
| From: | hans at linux dot gelrevision dot nl | Date: | Thu, 21 Jun 2001 09:44:05 +0000 |
| Subject: | RE: Limiting the section loop | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-925@lists.php.net to get a copy of this message | ||
On 21-Jun-01 Anders Janson wrote:
> A much neater way would be to write something like:
> {section name=foo loop=$bar limit=7}
If you have a resultset with over 10k of rows it will have to be passed to
Smarty. Afaik a limit within (for instance) a dbserver is cheaper.
Regards,
Hans
Linux : http://linux.gelrevision.nl/
phpReview : http://phpReview.nl.linux.org/
Boeken : http://nl.linux.org/boeken/