User Guide Cancel

GetBaseTemplatePath

 

Description

Gets the absolute path of an application’s base page.

Returns

The absolute path of the application base page, as a string.

Category

Other functionsSystem functions

Function syntax

GetBaseTemplatePath()

See also

GetCurrentTemplatePath, GetDirectoryFromPathFileExists, ExpandPath

Usage

Contrast this with the GetCurrentTemplatePath function, which, if called from an included page returns the page path of the included template rather than the base (including) template.

Example

<h3>GetBaseTemplatePath Example</h3>

<p>The template path of the current page is:
<cfoutput>#GetBaseTemplatePath()#</cfoutput>

 
<p>The directory containing the current template is:
<cfoutput>#GetDirectoryFromPath(GetBaseTemplatePath())#</cfoutput>

 

Get help faster and easier

New user?