extending an application.cfc, but giving it, it's own application name.
Hello,
I am extending an application.cfc from another directory. In my parent application.cfc I have:
<cfcomponent> this.name=hash( getCurrentTemplatePath()); |
in the child I have:
<cfcomponent extends="rootapplication">
this.name="child";
It looks like the child "this.name" never runs. No matter what i do they share the same application scope and a change in one changes both (as they have the same application name).
So I have two questions (different ways to fix the same problem):
1. Is there a way to change the application name?
2. Is there a better hash tag I can use for the parent this.name such that when run from a different directory it has a different value?.
I was hoping the getCurrentTemplatePath would load the child path when the parent is extended (which would fix all my problems). Is there an easier solution before I bang on this some more, as this has been rather frustration (this scope in application.cfc seems to be protected from anything not in the parent application.cfc).
Thanks,
-Eleon
