Re: New Idea for HTML/Menu.php

From: Date: Fri, 14 Sep 2001 17:07:39 +0000
Subject: Re: New Idea for HTML/Menu.php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1920@lists.php.net to get a copy of this message
On Friday 14 September 2001 10:07, Ronald van den Berg wrote: > Hi, > > In short: > > old: give menutype => give menuitems => generate HTML > > new: give menutype => give menuitems => generate array as proposed => > use your own HTML-maker or generate HTML in the 'old' way > If you check the url: http://www.ulf-wendel.de/projekte/menu/tutorial.php, you will see how you could change the appereance/style from the original one. I don't see many advantages returning an array that should be parsed and drawn with your own tree algorithm, when the class yet do it for you. If I would need to do all this work by hand, why would I ever need the class? :-) You could also benefit of css styles to easily change the appereance. My wish for the class would be to simplify the menu_array format, to make it more similar to a tree structure. [id] => array( 'url' =>, 'childs' => array(...) ) Tomas V.V.Cox

« previous php.pear.dev (#1920) next »