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
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
Copy link to clipboard
Copied
What values did you see when you ran a page?
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
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.
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
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.
Copy link to clipboard
Copied
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