CFML provides two functions for determining the name of the CFM file being executed. GetCurrentTemplatePath() returns the name of the current CFM file, and so does GetBaseTemplatePath(). The difference? If these functions are used within an included file GetCurrentTemplatePath() returns the name of the current file, while GetBaseTemplate() returns the name of the topmost calling template. (Applies to: ColdFusion 3 (or later))

Leave a Reply