Bitrix Site Manager

CBitrixComponentTemplate::GetFolder

string
GetFolder();

The method returns the path to the template folder relative to the site root, if the template resides in a folder. If the template is a file, the method returns an empty string.

Example


// In the component code
$template = & $this->GetTemplate();
$templateFolder = $template->GetFolder();