Gottcha, makes sense. -----Original Message----- From: Matthew Walker [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 6:08 PM To: [EMAIL PROTECTED] Subject: RE: [CFCDev] envronment variables and CFCs
> -----Original Message----- > Option 2 seems to > still defeat the idea of encapsulation (from a completely academic > perspective) because the cfcs would still be dependant on this > configuration > object referenced internally? I have chosen 1 for my applications. Well what I was describing (possibly unclear) was a case where an object is passed into the CFC when the CFC is inited and this object contains setters and getters for the environment vars. Within a method of the CFC I might write: <cfquery datasource="#instance.globals.getDSN()#" ... ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
