- SITEROOT
  - COM
    - SITE
      - myCFC.cfc
  - pageToCallCFC.cfm
  - CONTENT
    - anotherPageToCallCFC.cfm

Is there a way to set things up so pages not in the root folder can find my CFC's?

I have never had a problem with this. We do not have any custom tag paths or other paths set up in the administrator, and all files on our site can find all cfcs on our site, using a reference from the webroot. Here's our directory tree:


        webroot/
                page.cfm
                foo_section/
                        page_in_foo_section.cfm
                system/
                        bar.cfc

Both page.cfm and page_in_foo_section.cfm use this to instantiate the bar component:

        CreateObject("component","system.bar");

--

        Ben Curtis
        WebSciences International
        http://www.websciences.org/
        v: (310) 478-6648
        f: (310) 235-2067




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