Bitrix Site Manager

CBitrixComponent::GetTemplate

object &
GetTemplate();

The method returns a reference to the component template object. The component template is valid only after calling IncludeComponentTemplate or InitComponentTemplate. Before calling these methods, a reference to null is returned.

Example

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