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!
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php