Documentation

IncludeComponentTemplate

void
IncludeComponentTemplate([
 string templatePage
 string customTemplatePath]?
);

The method initializes and connects component template. If the template initialization is unsuccessful, it displays error. Non-static method.

Parameters

ParameterDescription Available from version
templatePage Component template page name. Specified for complex components. Normal components must have empty string or not specified parameter.
customTemplatePath 10.0.5

Example

$this->IncludeComponentTemplate();

See Also

  • CBitrixComponent::InitComponentTemplate
  • CBitrixComponent::ShowComponentTemplate


  • © «Bitrix24», 2001-2024
    Up