For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > June 2004 > HTML_Menu problem with url and subs









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author HTML_Menu problem with url and subs
Vincent Dupont

2004-06-25, 6:46 pm

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'] =3D the label;
$menu_data[$menu_index]['url'] =3D the URL (can be empty)
$menu_data[$menu_index]['sub'] =3D 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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com