HTML_Menu::setURLPrefix() – Sets the prefix for the URLs in the menu


require_once 'HTML/Menu.php';

void HTML_Menu::setURLPrefix ( string $prefix )


This is useful if you have relative URLs in the menu description structure. This prefix will be appended to the URLs from this structure and the result will be compared to "current" URL.


string $prefix

menu URL prefix


throws no exceptions thrown


This function can not be called statically.

Sets the environment variable to use to get the current URL. (Previous) Prints the HTML menu. (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.