Bitrix Site Manager

CMain::SetCurPage

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

The method SetCurPage is used to set the current page and its parameters in the instance of the CMain class.

Parameters

ParameterDescription
page Address of the page. For example: "/en/index.php".
params Strings with parameters. For example: "id=2&s=3&t=4". Optional; if omitted, the current parameters in the CMain instance remain unchanged.

See Also

Example



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