PostNuke Help |
||
|---|---|---|
Previous |
Next |
|
obtain base URL for this site
string pnGetBaseURL();
pnGetBaseURL() obtains the base URL for the site. The base url is defined as the full URL for the site minus any file information i.e. everything before the 'index.php' from your start page.
This function returns the base URL of the site.
The last character in the string returned by pnGetBaseURL() is always '/'
pnGetBaseURL() replaces the old nukeurl global variable.
// get base URL
$path = pnGetBaseURL();
Previous |
Next |