Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple application.cfm files 1

Status
Not open for further replies.

PTmon

IS-IT--Management
Mar 8, 2001
284
US
is it okay to have multiple application.cfm files in different directories in the same tree?

Like:
/web/application.cfm

and

/web/admin/application.cfm

or will they be at war with each other?
thanks,
pt
 
Yes, the first one reached is the one read... So you can't have an application.cfm be an appendix to another application.cfm...

If that is the case, you need to have a common include setup so that in the child folder you can say <cfinclude template="..\commonfile.cfm"> if you like.

As for onrequestend.cfm, it is processed only in the folder that application.cfm is found, so you can't have onrequestend.cfm in a folder in the tree and expect it to be read if ther eis no application.cfm in that same folder.

Onrequestend.cfm works in the same way as application.cfm, only it is appended as the footer to every document... this a good place to put a counter script or a layout footer.

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
well, what I was hoping to do was have two different levels of logged in protection. It would have been quicker as I "inherited" this web site. I'll make a new application.cfm and deal with it there. Thanks so much for answering.

 
Also, if you "name" your application.cfm the same thing in your cfapplication tag, you can pass info back and forth between the two. (Like Session stuff, for example)



Hope This Helps!

Ecobb
Beer Consumption Analyst

"My work is a game, a very serious game." - M.C. Escher
 
want to know what's fun?
using two application.cfm files but one is in a virtual. you can't add the application name because you'll have multiple sites with the same app name, a big no-can-do. i had to actually include an application.cfm file from another application.cfm file.

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top