Re: section title block
| From: | Sergey Egorov | Date: | Sun, 25 Feb 2001 10:39:18 +0000 |
| Subject: | Re: section title block | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-217@lists.php.net to get a copy of this message | ||
Hello Monte,
Sunday, February 25, 2001, 9:17:03 AM, you wrote:
MO> I think this can be done now:
MO> {section name=mystuff loop=$data}
MO> {if %mystuff.loop% eq 0}
MO> {include file="section_header.tpl"}
MO> {/if}
MO> {* section row data goes here *}
MO> {if %mystuff.rownum% eq $mystuff.loop%}
MO> {include file="section_footer.tpl"}
MO> {/if}
MO> {/section}
Two ifs inside a loop? I think it is not a good solution.
--
Best regards,
Sergey mailto:esv@37.ru