I have an existing application that I am trying to implement Mach-II with.
So I already have an Application.cfc
Here is what I have done;
I have copied the mach-ii.cfc into the {AppRoot}
Application.cfc extends mach-ii
Where there is a matching method (Eg. onApplicationStart() )
I am calling super.onApplicationStart();
And have left the rest of the code that is in my original Application.cfc.
In Application.cfc I have Init() method that I call in the pseudo-constructor
In that INIT() method I have all my application variables being set via;
this.datasource = '....';
etc...
the issue I am having is that none of my THIS variables are being created as application scoped variables.
I am obviously missing something - and I assume it is because I am extending the mach-ii framework.
(I haven't previously had an Application.cfc that was extending another CFC)
I am sure it is going to be one of those things where I slap myself for being so silly - but none the less - if could someone could point me in the right direction - I would really appreciate it!
As always - thanks - Gavin.