GetTemplatePath
string CMain::GetTemplatePath( string rel_path )
The method creates the path to the component relative to the site root fr om the specified path to component. Non-static method.
Parameters
Parameter | Description |
---|---|
rel_path | Path to the component. The following algorithm is used to search for the path relative to the site root:
|
See Also
Examples of use
<? // obtain the real path to a component $path = $APPLICATION->GetTemplatePath("iblock/catalog/element.php"); // $path variable may contain the following: // "/bitrix/templates/.default/iblock/catalog/element.php" ?>
© «Bitrix24», 2001-2024