For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > June 2004 > Re: [PEAR] HTML_Menu problem









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 Re: [PEAR] HTML_Menu problem
Alexey Borzov

2004-06-29, 8:56 am

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/packa...eturlenvvar.php
http://pear.php.net/manual/en/packa...ecurrenturl.php
Sponsored Links







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

Copyright 2008 codecomments.com