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]

Reply via email to