Built-in Variables Application.cfc
In ColdFusion version 9, I have the following in Index.cfm:
<cfdump var="#Application#">
But the only thing I return is a structure with the name of the application - no other variables, such as rootPath, mappings, or customTagPath.
Here is what I have in Application.cfc:
<cfcomponent output="false">
<cfset this.name = left("App_#hash(getCurrentTemplatePath())#",64)>
<cfset this.applicationTimeout = createTimeSpan(0,8,0,0)>
<cfset this.sessionManagement=True>
<cfset this.loginStorage = "session">
<cfset this.clientManagement = False>
<cfset this.setClientCookies = True>
<cfset this.setDomainCookies = False>
<cfset this.scriptProtect = "all">
<cfset this.rootPath = getDirectoryFromPath(getCurrentTemplatePath())>
<cfset this.mappings = this.rootPath>
<cfset this.customTagPaths = "#this.rootPath#Components">
This is because these parameters are not included in the application area. You are misleading application settings and application values. If you want them to be available in the Applications area, you can simply install them in your onApplicationStart (). You can also see them using this area, so you copy the values there.