HTML_Menu problem with url and subs

From: Date: Fri, 25 Jun 2004 09:06:32 +0000
Subject: HTML_Menu problem with url and subs
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13336@lists.php.net to get a copy of this message
Hi, I'm trying to create a HTML_Menu through recursive function I have a problem with the 'sub'-menu items when the 'url' is set, they just do not display. The sub is created by a recursive call to the function $menu_data[$menu_index]['title'] = the label; $menu_data[$menu_index]['url'] = the URL (can be empty) $menu_data[$menu_index]['sub'] = call to the same function with current menu ID For menu items that do not have a 'url' (this is empty), then the sub menus are well displayed. Any idea? From the examples, it seem that a menu can have BOTH a url and sub menus, no? Vincent

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