Skip to main content
Inspiring
October 17, 2007
Question

Location of CFC Files???!?

  • October 17, 2007
  • 3 replies
  • 390 views
I have a small application that has a handful of cfc files. Up until now (in development) I have stored the files in the site root. Now that I am looking to move this into production (in a hosting environment), I would like to be able to store the cfc files in a folder for organizational purposes.

I do not have access to the CF Administrator, is there anyway I can group these files together in a subfolder so that they can be accessed from any page?


Thanks.
    This topic has been closed for replies.

    3 replies

    Inspiring
    October 17, 2007
    Presuming that mysite.com is the site root, "cfcs.mycfc".
    Inspiring
    October 17, 2007
    Not sure I understand.

    if i have mysite.com/cfcs/mycfc.cfc

    and in

    mysite.com/catalog/index.cfm i have a cfinvoke statement

    how to i reference the mycfc.cfc ???
    Inspiring
    October 17, 2007
    Yes.

    When you define a path to a CFC in your invocation, i.e.
    a.path.to.my.component, CF will look for that path in a prescribed
    order. First, under the calling template. Second, from the web root.
    Third from the CF admin defined custom template root. Finally from CF
    admin defined mappings.

    So if you created directory or set of directories to store your
    components, you would just put the path to the desired cfc from the root
    of the site when you want to invoke it.