General Introduction
Settings
Special constants
Special variables
Date and Time
Complex logic in filter
Email system
AddBufferContent
AddChainItem
AddHeadScript
AddHeadString
AddPanelButton
AddViewContent
AuthForm
CaptchaCheckCode
CaptchaGetCode
ConvertCharset
ConvertCharsetArray
CopyFileAccessPermission
GetCSS
GetCurDir
GetCurPage
GetCurPageParam
GetCurUri
GetDirProperty
GetDirPropertyList
GetException
GetFileAccessPermission
GetFileContent
GetFileRecursive
GetMenu
GetMenuHtml
GetMenuHtmlEx
GetMeta
GetNavChain
GetPageProperty
GetPagePropertyList
GetPanel
GetProperty
GetPublicShowMode
GetShowIncludeAreas
GetSiteByDir
GetTemplatePath
GetTitle
GetUserRight
GetUserRoles
IncludeAdminFile
IncludeComponent
IncludeFile
IncludeString
IsHTTPS
MoveJSToBody
RemoveFileAccessPermission
ResetException
SaveFileContent
SetAdditionalCSS
SetCurPage
SetDirProperty
SetFileAccessPermission
SetPageProperty
SetTemplateCSS
SetTitle
ShowBanner
ShowBodyScripts
ShowCSS
ShowHead
ShowHeadScripts
ShowHeadStrings
ShowMeta
ShowNavChain
ShowPanel
ShowProperty
ShowSpreadCookieHTML
ShowTitle
ShowViewContent
ThrowException
get_cookie
set_cookie
Features
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-2023
Up