You shouldn't, as it breaks encapsulation. Any outside variables you 
would need inside a cfc should be passed into the cfc, either as part of 
your object initialization, or directly into a specific method.

Cutter

On 1/28/2015 10:25 AM, John Pullam wrote:
>> If you moved your cfc's above the application.cfc (or application.cfm) file,
>> the session variables will not be accessible. Session and application vars
>> are accessible from the application file down.
>>
> That's what we did.
>
> What other method than session variables can I use to pass a common variable 
> that won't require me to include it as a parameter of every calling routine?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360017
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to