Ah, you are probably correct, I don't think I've tried it that way. As Thomas pointed out though, that still seems like a "violation" of good OO practices. I'm probably one of the minority who think that MM shouldn't have allowed the use of cfinclude within cfc's at all, but that's just my opinion. I'll remember that though, thanks pointing it out.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger B. Sent: Tuesday, July 06, 2004 11:46 AM To: [EMAIL PROTECTED] Subject: RE: [CFCDev] Serialization of CFCs > The bottom line is basically, don't use cfinclude > within CFCs. Brian: Unless I missed something during the last go-round, the bottom line is actually "don't use cfinclude within cffunction". Using it like this: <cfcomponent> <cfinclude template="someFunction.cfm"> <cfinclude template="someOtherFunction.cfm"> </cfcomponent> ...works just fine, and doesn't result in var'd variables being copied into the variables scope. -- Roger Benningfield JournURL: http://journurl.com/ blog: http://admin.support.journurl.com/ ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
