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

	try
	{
		$this->__templatePage = IOPath::normalize($templatePage);
	}
	catch (IOInvalidPathException $e)
	{
		$this->__templatePage = '';
	}

	$this->__template = new CBitrixComponentTemplate();
	$this->__template->setLanguageId($this->getLanguageId());
	if ($this->__template->Init($this, $siteTemplate, $customTemplatePath))
		return true;
	else
		return false;
}