getTemplatePath

Returns the filepath of the base template in this request

getTemplatePath() → returns string

The getTemplatePath function was REMOVED from ColdFusion 2025 and has been DEPRECATED since ColdFusion 6

Compatibility

ColdFusion:

DEPRECATED since version 6 REMOVED in version 2025 Use the GetBaseTemplatePath function instead

Lucee:

DEPRECATED since version 4.5 Use the GetBaseTemplatePath function instead

Examples
Sample code invoking the getTemplatePath function

getTemplatePath()

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub