THIS.mappings - scoping problem?
hi there
our Application.cfc contains
THIS.mappings = StructNew();
mappingname = "/webincludes";
mappingpath = "Z:\webincludes\movo";
THIS.mappings[mappingname] = mappingpath;
Calling
<cfinclude template="/webincludes/vowiz/myinclude.inc" >
from within the function onRequestStart() works fine.
But when we try to do the same from a normal cfm-template, we get a
Could not find the included template /webincludes/vowiz/myinclude.inc
Is this a scoping problem? And how can we overcome it? I actually thought, that mappings are visible all over the application?
-Didi