It's best to create a CFC with a bunch of related functions. So, perhaps a price.cfc with getPrice as a function and insertPrice as a function. In the calling code, when you instantiate that object you have access to both functions
Charlie Griefer wrote: > OK since you opened the can of worms... :) > > i'm still relatively new to the whole concept of OO and using CFC's > OOly. with that disclaimer out of the way... > > Why wouldn't you? seems that's the CR part of CRUD, which I > understood should be together in one CFC? > > On 10/30/06, Andy Matthews <[EMAIL PROTECTED]> wrote: > >> Of course you can. The thing people will comment on is whether you "should". >> >> <!----------------//------ >> andy matthews >> web developer >> certified advanced coldfusion programmer >> ICGLink, Inc. >> [EMAIL PROTECTED] >> 615.370.1530 x737 >> --------------//---------> >> >> -----Original Message----- >> From: Matthew Irwin [mailto:[EMAIL PROTECTED] >> Sent: Monday, October 30, 2006 4:36 AM >> To: CF-Talk >> Subject: Insert Data CFC >> >> >> I have a cfc that I invoke to show the price of an item. Can I use the same >> cfc to place the price in a table. >> >> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258452 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4