Re: PEAR::Tree to HTML list
| From: | Alexey Borzov | Date: | Wed, 12 Jan 2005 08:00:56 +0000 |
| Subject: | Re: PEAR::Tree to HTML list | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16887@lists.php.net to get a copy of this message | ||
Hi,
Peter Bowyer wrote:
I was wondering if anyone has code to take a PEAR::Tree from the database and render it using HTML lists (eg <ul>...</ul>) into a tree? I've followed through the examples where the indentation is done using spaces, but now I want to do it structurally in HTML (rather than presentationally), and I can't get any code to do so :-)HTML_Menu can do that, you can either 1) Borrow the code from there or 2) Convert the tree structure to the input HTML_Menu understands and use it