CFLib.org – Common Function Library Project

getCurrentTemplateDirectory()

Last updated June 04, 2008

author

Timothy D Farrar

Version: 1 | Requires: CF5 | Library: UtilityLib

Description:
This function returns the directory of the currently executing coldfusion page.

Return Values:
Returns a string.

Example:

The current directory is <cfoutput>#getCurrentTemplateDirectory()#</cfoutput>

Parameters:

No arguments.

Full UDF Source:

/**
 * This function returns the current directory of your current coldfusion template.
 * 
 * @return Returns a string. 
 * @author Timothy D Farrar (timothyfarrar@sosensible.com) 
 * @version 1, June 4, 2008 
 */
function getCurrentTemplateDirectory() {
    return getDirectoryFromPath(getCurrentTemplatepath());
}

Search CFLib.org


Latest Additions

Raymond Camden added
QueryDeleteRows
November 04, 2017

Leigh added
nullPad
May 11, 2016

Raymond Camden added
stripHTML
May 10, 2016

Kevin Cotton added
date2ExcelDate
May 05, 2016

Raymond Camden added
CapFirst
April 25, 2016

Created by Raymond Camden / Design by Justin Johnson