 <!--- path of calling Application.cfc will become the root dir --->
 <cfset this.rootDir = getDirectoryFromPath(getBaseTemplatePath())>
-<!--- niffty way to have unique application names and not have to worry about the 64 character length limit --->
+<!--- nifty way to have unique application names and not have to worry about the 64 character length limit --->
 <cfset this.name = Hash(this.rootDir)>
 <cfset this.mappings["/wheels"] = this.rootDir & "wheels">
 <cfset this.mappings["/controllerRoot"] = this.rootDir & "controllers">


<cffunction name="onRequest" output="true">
	<cfargument name="targetpage">
	<cflock scope="application" type="readonly" timeout="30">
		<cfinclude template="#arguments.targetpage#">
	</cflock>
</cffunction>

<cffunction name="onRequestEnd" output="true">

	<cfif application.settings.showDebugInformation>
		<cfset request.wheels.execution.components.requestEnd = getTickCount()>
	</cfif>
	<cfinclude template="../events/onrequestend.cfm">
	<cfif application.settings.showDebugInformation>
		<cfset request.wheels.execution.components.requestEnd = GetTickCount() - request.wheels.execution.components.requestEnd>
	</cfif>
	<cfinclude template="debug.cfm">
</cffunction>

<cffunction name="onSessionEnd" output="false">
	<cfargument name="sessionscope">
  <cfargument name="applicationscope">
	<cfinclude template="../events/onsessionend.cfm">
</cffunction>

<cffunction name="onApplicationEnd" output="false">
