> 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 <cyc...@annex.net> > > 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:328709 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4