PEAR Manual
Prev |  | Next

# HTML_Menu::setURLEnvVar()

HTML_Menu::setURLEnvVar() -- Sets the environment variable to use to get the current URL.

## Synopsis

    require_once 'HTML/Menu.php';

``void HTML_Menu::setURLEnvVar` (string $urlEnvVar)`

## Description

The default variable name is `'PHP_SELF'`, which means 'current script name'.

## Parameter

string `$urlEnvVar`

  environment variable for current URL

## Throws

throws no exceptions thrown

## See

see HTML_Menu::getCurrentURL(), HTML_Menu::forceCurrentURL().

## Note

This function can not be called statically.

Prev | Home | Next
HTML_Menu::setMenuType() | Up | HTML_Menu::setURLPrefix()