0
Participant
,
/t5/coldfusion-discussions/difference-between-application-cfc-and-cfm/td-p/522654
May 14, 2007
May 14, 2007
Copy link to clipboard
Copied
Title says it all. I'm a bit confused about the difference
between Application.cfc and .cfm.
I understand a bit more about the .cfc, where you define methods onRequestStart, etc.
Yet in an example I'm following, they use .cfm and the <cfapplication> tag. Both seem to get called, but should I only be using one file? Or?
Also since both can be used what is the calling order by ColdFusion or is one ignored if the other is present?
I understand a bit more about the .cfc, where you define methods onRequestStart, etc.
Yet in an example I'm following, they use .cfm and the <cfapplication> tag. Both seem to get called, but should I only be using one file? Or?
Also since both can be used what is the calling order by ColdFusion or is one ignored if the other is present?
TOPICS
Getting started
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
LEGEND
,
May 15, 2007
May 15, 2007
application.cfc gives you more control over when code runs.
In an application.cfm file, all of the code in that file is
processed at the start of every page request. With application.cfc
you can assign bits of code to the appropriate method.
LEGEND
,
/t5/coldfusion-discussions/difference-between-application-cfc-and-cfm/m-p/522655#M47848
May 14, 2007
May 14, 2007
Copy link to clipboard
Copied
if you have both files in the same location, only .cfc is
processed.
.cfm is ignored if .cfc is found.
--
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
.cfm is ignored if .cfc is found.
--
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/coldfusion-discussions/difference-between-application-cfc-and-cfm/m-p/522656#M47849
May 15, 2007
May 15, 2007
Copy link to clipboard
Copied
application.cfc gives you more control over when code runs.
In an application.cfm file, all of the code in that file is
processed at the start of every page request. With application.cfc
you can assign bits of code to the appropriate method.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

