Documentation

SetCurPage

CMain::SetCurPage(
  string page,
  mixed param = false
)

The method is used to obtain the path and name of the current page relative to the site root, without parameters. Non-static method.

Parameters

ParameterDescription Available from version
page Page address. For example, "/en/index.php".
param Parameter string. For example, "id=2&s=3&t=4". Parameter is optional. If not specified, page parameters in the CMain object class remain unchanged.

See Also

Examples of use

<?
$APPLICATION->SetCurPage("/en/index.php", "id=2&s=3");
?>


© «Bitrix24», 2001-2022
Up