Where is the best place to set the path with Application.cfc?
Hi!
When I used Application.cfm, I set many path variables here so I don't have to keep writing a full path on many of the templates repeatedly.
So I did:
<CFSET FileArchives = "/space/users/www/FileArchives/#session.Groups#/">
<CFSET GoodFiles = "/space/users/www/GoodFiles/#session.usergroup#/">
etc...
Later on I only need to refer it as: #FileArchives# in the codes instead of a full path name.
Now that I'm using Application.cfc can I also do the same thing???? should I do it within OnApplicationStart function? am I doing it correctly? (see below)
<cffunction name="onApplicationStart" returnType="boolean" output="false">
<cfset application.dsn = "EMBB">
<CFSET application.FileArchives = "/space/users/www/FileArchives/#session.Groups#/">
<CFSET application.GoodFiles = "/space/users/www/GoodFiles/#session.usergroup#/">
<cfreturn true />
</cffunction>
