Skip to main content
August 7, 2008
Question

Using multiple Application.cfm files

  • August 7, 2008
  • 1 reply
  • 938 views
Hello,

I have a few sections on a web site. In the root I set up the application name, path root, time outs, etc. I have an admin folder off the root with it's own Application.cfm file and I'd like to carry in some values from the root Application.cfm file (ex: path root).

My question is, is it possible to bring in values from other Application.cfm files up the folder structure? It's my belief CF stops looking for other Application.cfm files once it either finds one in the current folder, or as it goes up the ladder. The reason I want to do this is to prevent having to set site-wide values in multiple Application.cfm files.
    This topic has been closed for replies.

    1 reply

    Inspiring
    August 7, 2008
    Well there's nothing stopping you including one from another.

    Or you could isolate your config settings into an app_config.cfm or
    app_globals.cfm or something like that and include that from all of them.

    --
    Adam
    August 8, 2008
    True I could include it but that brings in the Application name, and I use a different application name in my Admin Application.cfm file, so that may conflict?

    I've thought about using a config file like you mentioned, I think I'll try that route. Thnx