Hi Tom,
personally im "on wheels" for just a couple of days now, so i give no
guarantees ;) but afaik:
the /config/app.cfm is the very first "custom/user-mode" (so outside
the /wheels folder) configuration that gets included.
by taking a quick look, the program-flow should be something like
this:
on every request where railo/cf gets involved (for example index.cfm
or rewrite.cfm if url rewriting is on):
/Application.cfc ("this" points now to the Application component, NOT
the scope!)
(includes:)
- /wheels/functions.cfm (sets rootDir, name and sessionManagement)
- (includes:)
- /config/app.cfm
- /wheels/global/appfunctions.cfm
- (includes:)
- /wheels/global/internal.cfm
- /wheels/global/public.cfm
- /wheels/global/cfml.cfm
- /events/functions.cfm
- /wheels/controller/appfunctions.cfm
- (includes: /wheels/controller/*)
- /wheels/events/on*.cfm
i think thats it. the rest gets included/executed via the on*-Events
in /wheels/events/.
onApplicationStart for example loads the /config/environment.cfm (or
from url.reload if defined) and includes the specific /config/
[environmentname]/settings.cfm for environment-specific settings.
also, all wheels-events (in /wheels/events/on*.cfm) do some wheels-
magic and include the appropriate user-events (in /events/on*.cfm)
upon completion.
@"raulriera": like i mentioned above, "this" points to the
Application.cfc NOT the application scope in app.cfm and all
other .cfm files which are included underneath Application.cfc (like
in the tree above) ;)
hope this helps,
dominik