• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

application.cfc versus application.cfm

Explorer ,
Nov 16, 2010 Nov 16, 2010

Copy link to clipboard

Copied

HI I have application.cfc and applicaiton.cfm in one folder. I defined same global varibales in both files with different values. I am using same global  variables in my cfml files. When I call my cfml page which values will dispaly in my page?

Advance Thxs

TOPICS
Advanced techniques

Views

1.1K

Translate

Translate

Report

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
Advocate ,
Nov 16, 2010 Nov 16, 2010

Copy link to clipboard

Copied

Even if you have both Application.cfm and Application.cfc files in your project folder, only the "Application.cfc" will be processed and you will have access to only those global variables that you define as part of your Application.cfc template.

HTH

Votes

Translate

Translate

Report

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 ,
Nov 16, 2010 Nov 16, 2010

Copy link to clipboard

Copied

What values did you see when you ran a page?

Votes

Translate

Translate

Report

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 ,
Nov 16, 2010 Nov 16, 2010

Copy link to clipboard

Copied

What values did you see when you ran a page?

Dan makes a good point.  Most oftent he fastest way to test these things is to just try it.  What's the harm in just giving something a go and see what happens?  It's the best way to learn things.  Asking people the answer is not a good way to learn things.

--

Adam

Votes

Translate

Translate

Report

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
Guide ,
Nov 17, 2010 Nov 17, 2010

Copy link to clipboard

Copied

Oh man, that sounds like the kind of stupid question you'd get in the CF exam, to which you'd be looking for the evasive answer e) No-one knows, it's a stupid question, if I ever wanted to know I'd just try it.

Seriously, you could've tried it yourself in the time it takes the Adobe forums to load.

I'm about to go make myself a coffee, can someone let me know in advance whether or not I'll have to top up the kettle please.

Votes

Translate

Translate

Report

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 ,
Nov 17, 2010 Nov 17, 2010

Copy link to clipboard

Copied

I'm about to go make myself a coffee, can someone let me know in advance whether or not I'll have to top up the kettle please.

e) No-one knows

--

Adam

Votes

Translate

Translate

Report

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
Guide ,
Nov 17, 2010 Nov 17, 2010

Copy link to clipboard

Copied

Purely for posterity in case it comes up again - there was just about enough. Yeah, it was slightly below the minimum but enough for a small cup, which was all I fancied.

Votes

Translate

Translate

Report

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
Community Expert ,
Nov 18, 2010 Nov 18, 2010

Copy link to clipboard

Copied

LATEST

Daverms is right. But Owain and Adam are also right - you should test these things to find out. It's a much better way to learn, it actually takes less time than to wait for an answer, and you're more likely to remember the answer.

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

GSA Schedule, and provides the highest caliber vendor-authorized

instruction at our training centers, online, or onsite.

Read this before you post:

http://forums.adobe.com/thread/607238

Votes

Translate

Translate

Report

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
Documentation