Hi,
Does anyone know what the rules are for ColdFusion including
Application.cfm? I mean, it cannot be as simple as you have requested a
..cfm file, I am gonna look for an Application.cfm now is it? Does it look
into headers etc?
If anyone knows a more technical process for its inclusion,
It is as simple as you stated. If you run a .cfm file, ColdFusion looks
for an Application.cfm file in it's directory, and in the parent
application's root directory. It will run both of those (assuming there
is a lower level directory Application.cfm file)
-Original Message-
From:
Rules on including Application.cfm
It is as simple as you stated. If you run a .cfm file, ColdFusion looks
for an Application.cfm file in it's directory, and in the parent
application's root directory. It will run both of those (assuming there
is a lower level directory Application.cfm file
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/appfra11.htm
Might help
Eric
On 8/21/06, Robertson-Ravo, Neil (RX) [EMAIL PROTECTED]
wrote:
Hi,
Does anyone know what the rules are for ColdFusion including
Application.cfm? I mean, it cannot be as simple as you have requested a
Ah, good to know. I thought it ran both, but anything done in the local
one overrides the stuff in the root file. Anyway, I'm not sure how
they'd do that, now that I think about it. So that makes sense (that it
only runs the local one).
-Original Message-
From: Everett, Al
Al is correct. Once it finds an Application.cfm, it stops looking.
And, it will continue to traverse up the directory tree to find one,
beyond the web root all the way to the drive root. (At least that's
what they say in the book. I haven't tried it.) An Application.cfc
will take precedence. If an
CF looks for an Application.cfm in the
current template's directory. If one isn't found it looks in the next
higher directory and keeps moving up the directory tree until it finds
an Application.cfm or reaches the root directory. It never runs more
than one Application.cfm unless you do something
-
From: Claude Schneegans
To: CF-Talk
Sent: Mon Aug 21 19:17:58 2006
Subject: Re: CF Rules on including Application.cfm
CF looks for an Application.cfm in the
current template's directory. If one isn't found it looks in the next
higher directory and keeps moving up the directory tree until
8 matches
Mail list logo