Per Application settings
Tags: Coldfusion
One of the other cool new features is the Per application settings in Application.cfc.
This allows for the following to give you mappings based on your application.
The only drawback at this stage is that it is recreated each and everytime the Application.cfc is called. This has a drawback to the following line of code.
I had made a suggestion that, this should be available to be kept in the application scope somehow. So that you could do this in the OnApplicationStart instead and have only have it set one time.
However as much of a pain it is to not be able to write simple code like that, a user can get around it by doing this.
getDirectoryFromPath(getCurrentTemplatePath()) &
"../../Frameworks/Reactor/Reactor" />
Seems to be a waste to me, but hey it works.
There are no comments for this entry.



TweetBacks