Documentation

CMenu Constructor

CMenu(
 string type = "left"
)

The method creates a CMenu class object. Non-static method.

Constructor parameters

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

See Also

Examples of use

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


© «Bitrix24», 2001-2024
Up