Bitrix Site Manager

CMenu (constructor)

CMenu(
 string type = "left"
)

Creates an instance of the CMenu class.

Parameters

ParameterDescription
type Menu type. Menu types are defined in the Site explorer module settings. 
Optional. Left  by default.

See Also

Example



<?
$lm = new CMenu("left");
$lm->Init($APPLICATION->GetCurDir(), true);
$lm->template = "/bitrix/templates/demo/left.menu_template.php";
echo $lm->GetMenuHtml();
?>