ShowComponentTemplate
void ShowComponentTemplate();
The method connects a component template. Before calling this method, the template must be initialized by the method CBitrixComponent::InitComponentTemplate. Non-static method.
If the template object is not required to the component code, use CBitrixComponent::IncludeComponentTemplate that both immediately initializes and connects the template.
Example
if ($this->InitComponentTemplate($templatePage))
{
$template = & $this->GetTemplate();
$folderPath = $template->GetFolder();
if (strlen($folderPath) > 0)
{
* * *
}
$this->ShowComponentTemplate();
}
See Also
© «Bitrix24», 2001-2024