Home > DeveloperSection > Interviews > Can we have multiple 'Application.cfm' file in an Application?

Posted on    May-19-2012 2:51 AM

 Cold Fusion
 1 Answer(s)
  1925  View(s)
Rate this:

Tanuj Kumar

Total Post:30

Posted on    May-19-2012 12:00 AM

Yes. If the application page directory does not have an Application.cfm page, ColdFusion searches up the directory tree until it finds an Application.cfm page. If several directories in the directory tree have an Application.cfm page, ColdFusion uses the first page it finds. If the Application.cfm page is present in the directory tree (and has the required permissions set), you cannot prevent ColdFusion from including it.
ColdFusion processes only one Application.cfm page for each request. If a ColdFusion page has a cfinclude tag pointing to an additional ColdFusion page, ColdFusion does not search for an Application.cfm page when it includes the additional page.

Don't want to miss updates? Please click the below button!

Follow MindStick