Hi Kevin. I've read that whole site a couple of days ago. Good stuff. But apart from making these "utilities" load in an application scope, I was trying to find a better way accesing them object-wide I guess. I'm worried aboout having to load all these utilities objects in a application variable. Right now it loads the system settings object. How much is too much objects when loading them into an application scope? Sorry for the questions. I just started to revert my programming thinking into an OOP stand point so I'm still sorting through all the damn terminology and concepts.
> -----Original Message----- > From: Kevan Stannard [mailto:[email protected]] > Sent: Wednesday, November 25, 2009 1:56 PM > To: cf-talk > Subject: Re: Methods not found. > > > > I'm not sure if this is the best way of going about it so if anyone > > has a better idea, I'd like to hear about it. :) > > You may like to take a look at 'dependecy injection' techniques > > http://learn.objectorientedcoldfusion.org/wiki/Dependency_Injection > > > 2009/11/26 Chung Chow <[email protected]> > > > > > Hi all, > > > > I'm trying to instantiate an object either in the > psuedo-contructor or > > init of my cfc as a variable so I can use it within all my method > > inside that cfc. For some reason when I call a method from that > > object I get a Method not found error. I'm not sure if this is the > > best way of going about it so if anyone has a better idea, > I'd like to > > hear about it. :) If I istantiate it WITHIN the cffunction, > it works fine. Any ideas? > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328712 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

