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

Have Applications.cfm exclude a page?

Participant ,
Mar 08, 2009 Mar 08, 2009
Is it possible to have your Applications.cfm not run for a particular page.
568
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
LEGEND ,
Mar 08, 2009 Mar 08, 2009
> Is it possible to have your Applications.cfm not run for a particular page.

Well you could check the CGI.SCRIPT_NAME of the request you wish to exclude
in the Application.cfm, and run/not run a block of code accordingly. This
will quickly become unwieldy though, as more and more requests need
different configs run.

You're better off organising your application slightly, having separate
directories / Application.cfms for different requirements.

Read this:
http://livedocs.adobe.com/coldfusion/8/htmldocs/appFramework_06.html

Also, can I recommend you use Application.cfc rather than Application.cfm,
if poss.

--
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
Explorer ,
Mar 15, 2009 Mar 15, 2009
If you have the pages that you DON'T want the application.cfm to run for in a different directory simply put a new application.cfm with blank content in that directory and it will effectively run 'nothing' instead of the root application.cfm.
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
Participant ,
Mar 15, 2009 Mar 15, 2009
LATEST
Nice. Thank you. I'll try it out. I was waiting for that for a long time.
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