As for the structure of components here is what I use.
Com is the top hierarchy, then I follow this with the following.
[sitename] - This will hold specific components that are relative to this
site only.
[system] - Under here and also sometimes the sitename, I break them up
further.
For example under com.system I might have security, thus I then have all
functions related to security under here, thus I can use the same code that
requires user authentication across all my websites and makes reuse of code
simpler.
Just makes it easier for me to know and debug, also make one change instead
of many.
Regards
Andrew Scott
Technical Consultant
NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205
Phone: 03 9686 0485 - Fax: 03 9699 7976
_____
From: Troy Simpson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 24 February 2004 3:34 PM
To: CF-Talk
Subject: Re: CFC Packages...
What about using something like:
com.domain.appName.componentX
Is there any benefit in doing it this way?
And where do you set the Mappings in the CF Admin Tool?
Under ColdFusion Mappings?
OR
Under Custom Tag Paths?
Thanks,
Troy
Troy Simpson wrote:
> All,
>
> During development, I saved my components in the URL
> /catalog/model/*.cfc like this:
>
> /catalog/model/description.cfc
>
> And I referenced my components like this in my code:
>
> catalog.model.description
>
> Now I am moving my application onto a testing machine and they have
> changed the URL to this:
>
> /InsideWood/cataloging/model/description.cfc
>
> And now my application has broke with the error "Could not find the
> ColdFusion Component catalog.model.description"
>
> So to keep this from happening again with my next application: What
> should I do? How should I organized my components? How should I
> package my components?
>
> Thanks,
> Troy
>
> --
> Troy Simpson
> Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
> North Carolina State University Libraries
> Campus Box 7111 | Raleigh | North Carolina
> ph.919.515.3855 | fax.919.513.3330
> E-mail: [EMAIL PROTECTED]
>
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

