Bitrix Site Manager

CBitrixComponentTemplate

The CBitrixComponentTemplate class is a component template wrapper. For each component template, a separate instance of CBitrixComponent is created, which exists until the component instance is destroyed.

To access methods of this class inside the component (after the template is initialized), obtain the template instance handle using the CBitrixComponent::GetTemplate method:

$template = & $this->GetTemplate();
$templateFile = $template->GetFile();