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.

Seems to be a waste to me, but hey it works.

"> Per Application settings

Per Application settings

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.

<cfset THIS.mappings["myMapping"]="c:\inetpub\MyMapping" />

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.

<cfset THIS.mappings["/myMapping"]=ExpandPath("../../Frameworks/Reactor/Reactor") />

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.

<cfset this.mappings['/Reactor'] =
getDirectoryFromPath(getCurrentTemplatePath()) &
"../../Frameworks/Reactor/Reactor" />

Seems to be a waste to me, but hey it works.