Application.cfc, THIS.mappings & cfinclude
hi there
In my Application.cfc
<cfcomponent>
<cfscript>
THIS.name = "myName";
{etc.}
THIS.mappings = StructNew();
mappingname = "/include";
mappingpath = "Z:\webincludes\didi\test\aaisession\appcfc";
THIS.mappings[mappingname] = mappingpath;
</cfscript>
<cfinclude template="/include/appcfc-onApplicationStart.inc" >
{etc.}
does not work!
When I do the mapping in CFadmin, it works. But I need to do it on an application base.
Is this due to the fact, that at the time CF tries to resolve the path of the template, the mapping has not yet been assigned?
How can I overcome this?
-Didi
