Howdy all -
So I'm continuing on my path to use the application.cfc framework and I'm
understanding more and more as I go along.
I've done a bit of reading on this subject and wanted to run my final
conclusion by people to insure I understood this properly before going and
changing all my code.
Outline:
I'm using a very loose version of FuseBox (basically just the file structure
and fuseactions)
App Folder Structure:
|---Intranet Base Folder - (Application.cfc sets up the application.dsn,
session.ID's user and other top level info)
|--- Document Management folder - (Application.cfc (extends the above
Application.cfc), runs a folder security check)
My observations:
1) When I include the app_Globals.cfm file (holds all my cfparam-var's) into
the second Application.cfc, the var's can be used in that CFC but not the
index.cfm that is the page being run.
2) Obviously if I include the app_Globals.cfm file into the index.cfm file then
it works fine, but the call to one of the var's in the second Application.cfc
file fails. (expected)
3) I could include the app_Globals.cfm into both pages, but this seems wrong..
My proposed solution:
Scope all of the var's in the app_Globals.cfm as 'request.varName' variables,
and include into the second Application.cfc file.
This seems right, but I just wanted to run it by people who have been doing
this longer than I.
Thanks for your time,Brent Nicholas - 248.767.5516 - [EMAIL PROTECTED] "I can't
afford to make exceptions. Once word leaks out that a pirate has gone soft,
people begin to disobey you, and then it's nothing but work, work, work, all
the time." -- Man in Black - Princess Bride
You are subscribed to cfcdev. To unsubscribe, please follow the instructions at
http://www.cfczone.org/listserv.cfm
CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]