Bitrix Site Manager

CBitrixComponent::ShowComponentTemplate

void
ShowComponentTemplate();

The method connects the component template. Before calling this method, the template must be initialized by CBitrixComponent::InitComponentTemplate.

If the component does not require template, use CBitrixComponent::IncludeComponentTemplate which initializes and includes the template at a single call.

Example

if ($this->InitComponentTemplate($templatePage))
{
	$template = & $this->GetTemplate();
	$folderPath = $template->GetFolder();
	if (strlen($folderPath) > 0)
	{
		* * *
	}
	$this->ShowComponentTemplate();
}

See Also

  • CBitrixComponent::GetTemplate