Documentation

IncludeAdminFile

CMain::IncludeAdminFile(
 string title,
 string abs_path
)

The method includes the specified file with the administrative prologue and epilogue attached. Non-static method.

Parameters

ParameterDescription
title Page title.
abs_path Absolute path to included file.

Example of use

<?
function DoInstall()
{
    global $DB, $APPLICATION, $step;
    $FORM_RIGHT = $APPLICATION->GetGroupRight("form");
    if ($FORM_RIGHT=="W")
    {
        $step = IntVal($step);
        if($step<2)
            $APPLICATION->IncludeAdminFile(GetMessage("FORM_INSTALL_TITLE"),
            $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/form/install/step1.php");
        elseif($step==2)
            $APPLICATION->IncludeAdminFile(GetMessage("FORM_INSTALL_TITLE"),
            $_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/form/install/step2.php");
    }
}
?>


© «Bitrix24», 2001-2022
Up