This is the approach we take as well. Heck, I'd wager 2/3 of the people using cfcs have a file named "Utilities.cfc" in their apps.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Barney Boisvert Sent: Wednesday, July 07, 2004 1:11 PM To: [EMAIL PROTECTED] Subject: RE: [CFCDev] using cfinclude within components (was Serialization of CFCs) I'm not sure what you mean by a cfimport in Java. I'd say make a utilities CFC containing those methods, and then use the CFC where you need the functions, be it in another CFC, or in "normal" CF code. CFINCLUDE is obviously bound to a relative path, while instantiating a CFC is only tied to the search path. Gives you much greater flexibility, because you can call them from anywhere. Cheers, barneyb > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jay Gibb > Sent: Wednesday, July 07, 2004 8:56 AM > To: [EMAIL PROTECTED] > Subject: [CFCDev] using cfinclude within components (was > Serialization of CFCs) > > In a OO language like Java, you have the option of using cfimport if > you need a low-level library function or any other utility function. > > If a CF codebase has an organization of UDFs that serve the same type > of purpose (ie: utility functions that may be useful in lots of > places), what's the preferred way to "import" them into your CFCs so > you can use them? > > - j. > > ---------------------------------------------------------- > 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] > ---------------------------------------------------------- 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] ---------------------------------------------------------- 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]
