Documentation

GetCurDir

string
CMain::GetCurDir()

The method returns the folder of the current page relative to the site root. Non-static method.

Parameters


No parameters.

See Also

Examples of use

<?
// current page: /en/support/index.php?id=3&s=5
global $APPLICATION;
$dir = $APPLICATION->GetCurDir();
// $dir contains "/ru/support/"
?>


© «Bitrix24», 2001-2024
Up