well here is the reason why i ask (raymond hasnt blogged about using the ini method yet)
i was thinking that since u cant call some variables such as your datasourse names outta your Application.cfm file, that you could just include them, so u didnt have to (lazily) manually change them. know what i mean? ---------- Original Message ---------------------------------- From: "Jim Davis" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Date: Fri, 29 Oct 2004 02:22:22 -0400 >-----Original Message----- >From: dave [mailto:[EMAIL PROTECTED] >Sent: Friday, October 29, 2004 1:38 AM >To: CF-Talk >Subject: includes and cfc's > >> can u include an include in a cfc? > >You can, but it's better to pretend you can't. > >There's a nasty little side effect of CFINCLUDE in CFCs: when you CFINCLUDE >inside a CFC method all VAR scoped (private) variables are transferred to >the CFCs "Variables" scope. This is, presumably, to allow the CFINCLUDed >code to see those values. > >However all it really does is create a situation where you simply can't >create a persistent, thread-safe CFC - it effectively destroys any >thread-protection you've creating using method-private values. > >That's why, in the end, it's much, much simpler and much, much safer to just >pretend that you can't CFINCLUDE inside a CFC. > >Jim Davis > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182903 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

