Question
1 vs many app.cfm
Which one is better (see below) ?
Under the wwwroot dir I have 4 root folders, MyFirstApp,MyFirstApp1,MyFirstApp2,MyFirstApp3 AND 1 application.cfm
Within each of these folders (MyFirstApp to 3), there are .cfm files that represent different applications (they are directly or indirectly related to each other)
Within the application.cfm, an application.dsn for each web application (MyFirstApp to 3) is set:
The structure of application.cfm looks like this:
<cfapplication name="Test" sessionManagement="yes" clientManagement="Yes" sessiontimeout=#CreateTimeSpan(0,0,1,0)#>
<cfset application.dsn1= "MyFirstApp">
<cfset application.dsn2= "MyFirstApp1">
<cfset application.dsn3= "MyFirstApp2">
<cfset application.dsn4= "MyFirstApp3">
So on my 1st. scenario, I have this structure:
wwwroot
MyFirstApp
MyFirstApp1
MyFirstApp2
MyFirstApp3
application.cfm >> this is the only application.cfm for the entire web applications where all the application.dsn are set
I think the following should be more proper but I'm not sure why or if it is even matter:
Can anyone give me some thought?
wwwroot
MyFirstApp
MyFirstApp1
application_formMyFirstApp_1 >>> <cfset application.dsn1= "MyFirstApp1">
MyFirstApp2
application_formMyFirstApp_2 >>> <cfset application.dsn2= "MyFirstApp2">
MyFirstApp3
application_formMyFirstApp_1>>> <cfset application.dsn3= "MyFirstApp3">
application.cfm >>> <cfset application.dsn= "MyFirstApp">
Under the wwwroot dir I have 4 root folders, MyFirstApp,MyFirstApp1,MyFirstApp2,MyFirstApp3 AND 1 application.cfm
Within each of these folders (MyFirstApp to 3), there are .cfm files that represent different applications (they are directly or indirectly related to each other)
Within the application.cfm, an application.dsn for each web application (MyFirstApp to 3) is set:
The structure of application.cfm looks like this:
<cfapplication name="Test" sessionManagement="yes" clientManagement="Yes" sessiontimeout=#CreateTimeSpan(0,0,1,0)#>
<cfset application.dsn1= "MyFirstApp">
<cfset application.dsn2= "MyFirstApp1">
<cfset application.dsn3= "MyFirstApp2">
<cfset application.dsn4= "MyFirstApp3">
So on my 1st. scenario, I have this structure:
wwwroot
MyFirstApp
MyFirstApp1
MyFirstApp2
MyFirstApp3
application.cfm >> this is the only application.cfm for the entire web applications where all the application.dsn are set
I think the following should be more proper but I'm not sure why or if it is even matter:
Can anyone give me some thought?
wwwroot
MyFirstApp
MyFirstApp1
application_formMyFirstApp_1 >>> <cfset application.dsn1= "MyFirstApp1">
MyFirstApp2
application_formMyFirstApp_2 >>> <cfset application.dsn2= "MyFirstApp2">
MyFirstApp3
application_formMyFirstApp_1>>> <cfset application.dsn3= "MyFirstApp3">
application.cfm >>> <cfset application.dsn= "MyFirstApp">
