You can try using an "application" scoped
variable... but community opinion (which is always right ... correct, so we jump
to another community if to become right... anyway) community opinion is that
encasulation would keep a CFC ignorant about it's environment. It only knows
what you tell it. So, you should pass the information into the cfc... or tell
the cfc where to look the information up at least. (like in an include
file.)
The only time this becomes an issue is with Web
Services or Flash Remoting. Then you are calling the CFCs externally, and then
you may want to use the Application.cfm file for declaration, but the include
file leans more towards the concept of encapsulation. (Also, if you are on
linux... don't know if this is still an issue, but the Application.cfm required
a capital 'A' according to older docs. Don't have a linux server running CF...
can't tell you. That could cause someone to not get the Application.cfm file to
be called though, if it wasn't case correct.)
John Farrar
|
Title: Message
- RE: [CFCDev] qualifying data coming in to cfc Raymond Camden
- RE: [CFCDev] qualifying data coming in to cfc Tony Weeg
- RE: [CFCDev] qualifying data coming in to ... Tony Weeg
- RE: [CFCDev] qualifying data coming i... Raymond Camden
- RE: [CFCDev] qualifying data comi... Tony Weeg
- RE: [CFCDev] qualifying data comi... Raymond Camden
- [CFCDev] application.cfm and cfc'... Tony Weeg
- RE: [CFCDev] application.cfm and ... Raymond Camden
- RE: [CFCDev] application.cfm and ... Tony Weeg
- RE: [CFCDev] application.cfm and ... Raymond Camden
- RE: [CFCDev] application.cfm and ... John Farrar
- RE: [CFCDev] application.cfm and ... Tony Weeg
- RE: [CFCDev] application.cfm and ... Chris Kief
- RE: [CFCDev] application.cfm and ... Tony Weeg
- RE: [CFCDev] data mappings from wsdl to cf Scott Keene
- RE: [CFCDev] data mappings from wsdl to cf Ruyle, David