Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Application.cfm

Engaged ,
Oct 30, 2012 Oct 30, 2012

Does ColdFusion need application.cfm to store the application parameter?

Is application.cfm is required in the ColdFusion application?

Your information and help is great appreciated,

Regards,

Iccsi,

689
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Oct 30, 2012 Oct 30, 2012

No.  Application.cfm is very badly named: it should be OnRequestStart.cfm.  It doesn't - intrinsically - have anything to do with applications in the ColdFusion sense of that notion.

What you do need, however, is a <cfapplication> tag that gets run on every request, to bind the request to an application (and, by proxy, to a session).  The best place to put something that needs to be run every request is in Application.cfm.

That said, you ought to be using Application.cfc for this sort of thing, no

...
Translate
LEGEND ,
Oct 30, 2012 Oct 30, 2012

No.  Application.cfm is very badly named: it should be OnRequestStart.cfm.  It doesn't - intrinsically - have anything to do with applications in the ColdFusion sense of that notion.

What you do need, however, is a <cfapplication> tag that gets run on every request, to bind the request to an application (and, by proxy, to a session).  The best place to put something that needs to be run every request is in Application.cfm.

That said, you ought to be using Application.cfc for this sort of thing, not Application.cfm.  Application.cfm is - for all intents and purposes - obsolete.  It still works, but it is grossly inferior to Application.cfc.  And there is no reason to be using it in favour of going with the recommended Application.cfc route.

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 30, 2012 Oct 30, 2012
LATEST

Thanks a million for helping and information,

Regards,

Iccsi,

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources