General Introduction
Features
Settings
Email system
Date and Time
URL rewrite
Special constants
Special variables
Complex logic in filter
AbortResultCache
AddIncludeAreaIcon
AddIncludeAreaIcons
ClearResultCache
GetName
GetParent
GetPath
GetRelativePath
GetTemplate
GetTemplateCachedData
GetTemplateName
GetTemplatePage
IncludeComponentTemplate
InitComponentTemplate
SetTemplateCachedData
ShowComponentTemplate
StartResultCache
setResultCacheKeys
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-2024
Up