CFLib.org – Common Function Library Project

getCurrentTemplateDirectory()

Last updated June 4, 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());
}
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson