GetTemplate
object & GetTemplate();
The method returns a reference to an object of component template. Component template is shown only after calling methods IncludeComponentTemplate or InitComponentTemplate. Before calling these methods a reference to null is returned. Non-static method.
Note
Before version 12.0 this method was named getTemplate.
Example
$this->InitComponentTemplate(); //initialize template and get the name and location $template = & $this->GetTemplate(); $templateFile = $template->GetFile();
© «Bitrix24», 2001-2025