Re: HTML_Menu problem

From: Date: Tue, 29 Jun 2004 12:28:51 +0000
Subject: Re: HTML_Menu problem
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13404@lists.php.net to get a copy of this message
Hi, Vincent DUPONT wrote:
I tried the HTML_menu example from the End-user documentation, but it seems I have a problem with most displays. Indeed, only the 'sitemap' works. When trying the 'tree' view, only the first level is displayed, even after I click on a link in the menu. Here is the test code. I changed the URLS so as to point to an existing file... With 'sitemap' view, the menu is fully displayed How does the HTML_menu get track of the current menu item to display sub menus?
By default it uses the value of PHP_SELF variable. If you need to take query string into account, you should use f.e. REQUEST_URI. See: http://pear.php.net/manual/en/package.html.html-menu.html-menu.seturlenvvar.php http://pear.php.net/manual/en/package.html.html-menu.html-menu.forcecurrenturl.php

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