Skip to main content
Inspiring
March 23, 2011
Answered

New to .cfc files : Do I have to register application.cfc with CFadministrator?

  • March 23, 2011
  • 2 replies
  • 817 views

I am using an application.cfc file for the first time ands I cant seem to get it to work.

Do I need to register the application.cfc in the CF administrator in order for it to work?

I actually have  2 cfc files application.cfc and mylist.cfc

Do I need to register both of these in the CF administrator?

    This topic has been closed for replies.
    Correct answer ecobb

    No, you shouldn't have to register any CFC for it to work.

    Ben Nadel has a pretty detailed tutorial on Application.cfc, I recommend reading through that as a good starting point.  It's a little outdated as I think it was written for CF 7, though. http://www.bennadel.com/blog/726-ColdFusion-Application-cfc-Tutorial-And-Application-cfc-Reference.htm

    -- 

    Thanks,

    Eric Cobb
    ECAR Technologies, LLC
    http://www.ecartech.com
    http://www.cfgears.com

    2 replies

    ilssac
    Inspiring
    March 24, 2011

    Note the important difference in the file names.

    Your post used the file name "application.cfc", the reply by ecobb used the file name "Application.cfc".  That capitol "A" is a significant difference on *nix systems.  The lower case "application.cfc" does not do anything, you MUST use the upper case "Application.cfc".

    ecobb
    ecobbCorrect answer
    Inspiring
    March 23, 2011

    No, you shouldn't have to register any CFC for it to work.

    Ben Nadel has a pretty detailed tutorial on Application.cfc, I recommend reading through that as a good starting point.  It's a little outdated as I think it was written for CF 7, though. http://www.bennadel.com/blog/726-ColdFusion-Application-cfc-Tutorial-And-Application-cfc-Reference.htm

    -- 

    Thanks,

    Eric Cobb
    ECAR Technologies, LLC
    http://www.ecartech.com
    http://www.cfgears.com