• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/component.php
  • Класс: CBitrixComponent
  • Вызов: CBitrixComponent::includeComponentTemplate
public function includeComponentTemplate($templatePage = "", $customTemplatePath = "")
{
	if (!$this->__bInited)
		return null;

	if ($this->initComponentTemplate($templatePage, $this->getSiteTemplateId(), $customTemplatePath))
	{
		$this->showComponentTemplate();
		if($this->__component_epilog)
			$this->includeComponentEpilog($this->__component_epilog);
	}
	else
	{
		$this->abortResultCache();
		$this->__showError(str_replace(
			array("#PAGE#", "#NAME#"),
			array($templatePage, $this->getTemplateName()),
			"Cannot find '#NAME#' template with page '#PAGE#'"
		));
	}
	$this->__template->__component = null;
}