No comment on the calling of the methods, but at work I keep all the cfc's in a folder struct like:

com.Ricardo.[NameOfApp].[cfcName]

ex:
com.Ricardo.InternalAudit.Audit
com.Ricardo.InternalAudit.AuditParticipants

com.Ricardo.TravelRequest.Hotel
com.Ricardo.TravelRequest.Car
com.Ricardo.TravelRequest.Airports
com.Ricardo.TravelRequest.TravelRequest

Keeping your CFC's clean and on context is important, as the app grows at design time it remains easy to know what's where.

There is some debate here about if we should just keep the cfc's for each app in the folders with the dsp_ (display files) for that app. Personally I'm against this. I prefer a structure of organizational resources seperate from the UI.

2cents

Brent Nicholas - EclecticDetroit, LLC.
http://www.EclecticDetroit.com
[EMAIL PROTECTED]
[EMAIL PROTECTED]

"On the other hand, you have different fingers."




From: Jeff Anderson <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: [CFCDev] cfc organisation
Date: Wed, 9 Mar 2005 08:28:46 -0500
MIME-Version: 1.0
Received: from cflib.org ([199.231.128.19]) by mc2-f42.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 9 Mar 2005 05:31:35 -0800
Received: from rproxy.gmail.com ([64.233.170.199]) by cflib.org with MailEnable ESMTP; Wed, 09 Mar 2005 08:24:25 -0500
Received: by rproxy.gmail.com with SMTP id b11so217361rne for <[email protected]>; Wed, 09 Mar 2005 05:28:46 -0800 (PST)
Received: by 10.38.24.17 with SMTP id 17mr754869rnx; Wed, 09 Mar 2005 05:28:46 -0800 (PST)
Received: by 10.39.1.27 with HTTP; Wed, 9 Mar 2005 05:28:46 -0800 (PST)
X-Message-Info: yilqo4+6kc4iO6nZzqt4fH72Y8TW/XPxPEcqElyAWEo=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=ITzi66XrP0BkikiICZCa8zzAJFANRvo+r+7hrIM/nBPJKJeHMc8TIA8R9jcl1o5rARoIwtNpjsZx2snn0LuLMyZ/WPNGf4chIIxfBfqKrK95VDTgTVNH7grTskVJt20EtG0lMh8QjZ+F+RhtfzjjbagI2MlMTuY0D0U6RHYIFq0=
References: <[EMAIL PROTECTED]>
Precedence: bulk
Return-Path: <[EMAIL PROTECTED]>
X-OriginalArrivalTime: 09 Mar 2005 13:31:35.0542 (UTC) FILETIME=[509DC960:01C524AC]


Duncan:

As long as you have an instance of the CFC to work with, you can call
any method as many times as you want.

Sorting is more of preference. I know a lot of people tend to keep
keep all of there CFCs in one folder that is mapped in the cfadmin.

Good luck!
-Jeff


On Wed, 9 Mar 2005 13:46:13 +1100, Duncan <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I am just trying to get to grips with CFC's and I just took one of our
> CustomTags from a CF4.5 app and made it in to a CFC for a v7 app.
>
> First of all may I say how easy it was to make it. Just brilliant.
>
> The cfc in question takes a struct (like attributes) and converts all
> the key value pairs in it to a URL of Form hidden fields format for
> easy inclusion in a href or form. You can specify exceptions that
> dont get converted as well.
>
> Now this could get used 3 or 4 times in a request and I was wondering
> if I can invoke it once and then call upon the method as and when I
> need it, but with different variables. Maybe chuck it in at
> application start then use it during a request?
>
> Second, I was wondering about how to 'file' my CFC's (I think the
> number of them will grow very rapidly now I have done 1!). A lot of
> them will be used in different apps around my organisation and would
> probably need to be shared across server instances too. Any
> suggestions on how to best acheive this?
>
> Thanks in advance!
>
> --
> Duncan I Loxton
> www.mcgrath.com.au
> www.sixfive.co.uk
> [EMAIL PROTECTED]
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
>
>



-- Who wants a Gmail invite? I have 50 of them http://nectaar.i989.net/ - Coming Soon

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.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' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]



Reply via email to