<cfset loc.myapp = {}>
<cfset loc.myapp.base = "http://www.server.com">
<cfset loc.myapp.filepath = "C:\JRun4\servers\dev\cfusion.ear
\cfusion.war\serversite\">
<cfset loc.myapp.homepagetitle = "My home page">
<cfset set(myapp = loc.myapp)>
I was looking over my code and see homepage really doesn't belong in
the environment/settings.cfm but in the config/settings.cfm
in config/enviromentName/settings.cfm can i do a
<cfparam name="loc.myapp" default = {}> and delete the cfset for
homepagetitle .
and then in environment/settings.cfm
<cfparam name="loc.myapp" default = {}>
<cfset loc.myapp.homepagetitle = "My home page">
<cfset set(myapp = loc.myapp)>
Or should i use config/app.cfm somehow....
> --
>
> You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
> To post to this group, send email to cfwh...@googlegroups.com.
> To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.
>
>
>
config/settings.cfm
<!--- all environment application variables --->
<cfset loc.myapp = {}>
<cfset loc.myapp.homepagetitle = "My Page Title">
<cfset set(myapp = loc.myapp)>
config/production/settings.cfm (and other environment_folder/
settings.cfm)
<!--- specific environment application variables --->
<cfset loc.myapp = get("myapp") >
<cfset loc.myapp.base = "http://production.com/folder/">
<cfset loc.myapp.filepath = "C:\JRun4\servers\dev\cfusion.ear
\cfusion.war\production\">
<cfset set(myapp = loc.myapp)>