printing tree structures with smarty
| From: | Manuel Holtgrewe | Date: | Wed, 02 Jan 2002 18:38:45 +0000 |
| Subject: | printing tree structures with smarty | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2470@lists.php.net to get a copy of this message | ||
Hi!
Now how could I output tree structures with smarty. If I wanted to print a newsgroup in a tree structure, for example - how could I do that?
I have a template named "mail.tpl":
{section name=mail loop=$mails}
<li>
{$mails[mail]}
<ul>
{include file="mail.tpl" mails=$mails[mail]}
</ul>
</li>
{/section}
But that does not work... How to do it?
--
what privilege do we have under the sun,
that gives us the right to the throne ?
In Flames - "Coerced Coexistence"