Re: nested tree

From: Tommy Ipsen (tipsen_at_imada.sdu.dk)
Date: 11/04/03


To: php-general@lists.php.net, Daniel Demacek <carpefore@yahoo.com>
Date: Tue, 04 Nov 2003 19:40:33 +0100

Daniel Demacek wrote:

> Now I have written the following code to represent
> this nested tree using <ul> and </ul> in html, which I
> think is very ugly and probably not very efficient, I
> was wondering if there was a better solution, maybe
> more efficient:

You might consider using the PEAR::Tree class (perhaps together with
PEAR::HTML::Tree_Menu) for this project - it might help you out - I'm
trying to accomplish the same thing - to create a menusystem which
allows infinitely nesting and outputs a html-list menu using CSS to
style the menu (See: http://www.alistapart.com/articles/slidingdoors/
and http://www.alistapart.com/articles/slidingdoors2/)

Cheers,

Tommy Ipsen

PS: I would like to hear how you solve the problem since (as mentioned)
I'm working on the same thing!