I actually do all those as well, with the exception being that they set up a mapping for each site (since they name each virtual host's webroot "sitename.com", which doesn't work well with dot-notation mapping.) I hadn't considered putting them outside the webroot, though, I may look into the feasibility of that - thanks for the idea!

Phil, that's a good point, I had forgotten that I have the same problem with extending CFCs. Let's hope that one gets through!

On Nov 15, 2004, at 12:09 PM, Jeffry Houser wrote:


Will your host set up a mapping for you? If so, you can set up the same mapping on your dev machine and then you don't have to worry about changing names.


Or you could set a variable in the application.cfm and use that to reference all your components.

Or you could put all your components in a package (aka in the same directory).

I actually use all these methods. Components are put in (non-web-accessible) directory, which is referenced using a CF mapping. Keep the mapping the same on dev and production.

At 11:52 AM 11/15/2004, you wrote:
I love being able to pass in CFCs as arguments to my functions, but it's a nuisance when the path to my objects changes from development to production servers, since our sites are hosted on a shared server, the name of the webroot is out of our control. I'd rather not use "any" as the type, as that defeats the purpose of typed arguments, but is there a way to specify "object" as the type? I wish I could name things properly (i.e. com.sitename,package.objname) but that would require more setup work for each site and a lot of changes for existing sites. For the most part, I set up my development sites as closely as I can to the production server, and I set an 'application.appHome' variable to use whenever instantiating a component in the body of a function or page, but that doesn't work for function arguments.

Any thoughts or suggestions as to the best way to handle this, admittedly minor, issue? :)

----------------------------------------------------------
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 [EMAIL PROTECTED]

-- Jeffry Houser, Web Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Books: <http://www.instantcoldfusion.com> My Recording Studio: <http://www.fcfstudios.com> My Energetic Acoustic Rock Band: <http://www.farcryfly.com> -- When did Reality Become TV

----------------------------------------------------------
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 [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 [EMAIL PROTECTED]

Reply via email to