Re: Html_Menu - Assigning urls to nodes

From: Date: Wed, 26 May 2004 17:19:13 +0000
Subject: Re: Html_Menu - Assigning urls to nodes
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12746@lists.php.net to get a copy of this message
Hi! Pete wrote:
I am trying to use the Html_Menu class' example script: How can I change this line: foreach ($data as $id => $node) {
    $data[$id]['url'] = $_SERVER['PHP_SELFT']."?nodeID=".$node['id'];
} so that i get actual links to different pages? When I change $_SERVER['PHP_SERVER'] to $data[$id]['url'] the links refer to different pages but the menu doesn't work anymore. Really, I am giving up. Tried all day yesterday.The documentation doesn't help at all.
A better description of the problem would bring better help than writing "The documentation doesn't help at all." Please describe *what* exactly you are trying to achieve, instead of *how* you are trying to do that.

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