Set it as a variable.

<cfscript>
    set request.compentPath = catalog.model;
</cfscript>

Then Call #request.compentPath#.description and you have a portable
application...

(But you will need to make sure that your request sets are called)

Note: create a preference file that holds all of your global variables like
this ..that way you can make many changes (ie colors, datasources ect..)

Paul Giesenhagen
QuillDesign
----- Original Message ----- 
From: "Troy Simpson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 23, 2004 3:15 PM
Subject: [CFCDev] Package Design


> 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]
>
> ----------------------------------------------------------
> 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]

Reply via email to