PEAR::Tree to HTML list

From: Date: Tue, 11 Jan 2005 23:03:02 +0000
Subject: PEAR::Tree to HTML list
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16885@lists.php.net to get a copy of this message
Hi, 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 :-) It would be easy enough if I didn't have to write it as a callback function, as I don't seem to have enough information about the structure of the tree and how it changes from one level to another to know when to insert <ul> and when to insert </ul>. If anyone can help I'd be very grateful! Thanks, Peter

« previous php.pear.general (#16885) next »