How do I extend application.cfc
My current attempt at extending m application.cfc results in this message:
The folderA.subfolderB.///Application component or interface cannot extend itself.
I have a folder named "folderA" and within this folder is an application.cfc and a subfolder named "subfolderB' Within subfolderB I also have an application.cfc
The code within folderA/application.cfc is as follows:
<cfcomponent>
<cfset this.name = "test1">
<cfset this.sessionManagement = "true">
<cfset this.clientManagement = "false">
<cfset this.setClientCookies = "true">
<cfset this.applicationTimeout = CreateTimeSpan(2,0,0,0)>
<cfset this.sessionTimeout = CreateTimeSpan(0,0,20,0)>
</cfcomponent>
The code within folderA/subfolderB/application.cfc is as follows:
<cfcomponent extends="../Application">
<cfset this.name = "test1">
<cfset this.sessionManagement = "true">
<cfset this.clientManagement = "false">
<cfset this.setClientCookies = "true">
<cfset this.applicationTimeout = CreateTimeSpan(2,0,0,0)>
<cfset this.sessionTimeout = CreateTimeSpan(0,0,20,0)>
</cfcomponent>
What value do I need in the 'extends' in order to have the subfolderB application.cfc extend the application.cfc located in the parent folder? Can it be a relative path? Does it have to be a mapping to the parent folder?
Thanks,
Randy
