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>

 

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy