Bitrix Site Manager

CMain::GetCurDir

string
CMain::GetCurDir()

The method GetCurDir returns the folder of the current page relative to the site root.

Parameters

No parameters.

See Also

Example



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