string CMain::GetTemplatePath( string component_path )
The method GetTemplatePath creates the path to the component relative to the site root from the specified path to component.
Parameter | Description |
---|---|
component_path | Path to the component. The following algorithm is used to search for the path relative to the site root:
|
<? // obtain the real path to a component $path = $APPLICATION->GetTemplatePath("iblock/catalog/element.php"); // $path may contain the following: // "/bitrix/templates/.default/iblock/catalog/element.php" ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |