On Friday, Oct 25, 2002, at 16:30 US/Pacific, Troy Simpson wrote:
> I'm using Dreamweaver MX to create some CFC's and trying to figure out
> how to layout the file system on the ColdFusionMX App server.
> (FYI:  I'm new at this CFC stuff and Dreamweaver too.)
> Where am I suppose to copy the CFC's too?
> I've read various things.
> Some put them under the wwwroot.
> Others put them outside the wwwroot and create a mapping.

If you want to invoke them as Web Services or via Flash Remoting, you 
need to make your CFCs web-accessible. Otherwise, you can put them 
wherever you want.

Here's what my team does (partial credit to Mike Nimer for the seed of 
this):

        {cfmx}/
                extensions/
                        components/
                                {appname}/
                                        {file}.cfc
                        customtags/
                                {appname}/
                                        {file}.cfm
                        includes/
                                {appname}/
                                        {file}.cfm
                wwwroot/
                        {appname}/
                                {file}.cfm

Where {cfmx} is the install directory, {appname} is an application name 
(e.g., store, membership) and {file} is any filename.

Then we add these to the custom tag / components path in the CF Admin:
        {cfmx}/extensions/components/
        {cfmx}/extensions/customtags/

And we add a mapping for the includes:
        /cfinclude      {cfmx}/extensions/includes/

Typically, each application has an Application.cfm under 
wwwroot/{appname}/ which also cfinclude's /Application.cfm which 
contains our 'global' stuff.

This is all part of our coding guidelines - but I can't remember 
whether I left this in the public domain version:
        http://www.corfield.org/coldfusion/codingStandards.htm

I can't answer your RDS question I'm afraid!

Sean A Corfield -- Director, Architecture
Web Technology Group -- Macromedia, Inc.
tel: (415) 252-2287 -- cell: (415) 717-8473
fax: (415) 865-3113 -- http://www.macromedia.com
An Architect's View -- http://www.corfield.org/blog/

Macromedia DevCon 2002, October 27-30, Orlando, Florida
Architecting a New Internet Experience
Register today at http://www.macromedia.com/go/devcon2002

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to