PageRenderTime 41ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 19ms app.codeStats 0ms

/wheels/events/onmissingtemplate.cfm

http://cfwheels.googlecode.com/
ColdFusion | 15 lines | 14 code | 1 blank | 0 comment | 0 complexity | e22d9bea889adf47845f59ffafe8a241 MD5 | raw file
 1<cffunction name="onMissingTemplate" returntype="void" access="public" output="true">
 2	<cfargument name="targetpage" type="any" required="true">
 3	<cfscript>
 4		$simpleLock(execute="$runOnMissingTemplate", executeArgs=arguments, name="wheelsReloadLock", type="readOnly", timeout=180);
 5	</cfscript>
 6</cffunction>
 7
 8<cffunction name="$runOnMissingTemplate" returntype="void" access="public" output="true">
 9	<cfargument name="targetpage" type="any" required="true">
10	<cfscript>
11		$header(statusCode=404, statustext="Not Found");
12		$includeAndOutput(template="#application.wheels.eventPath#/onmissingtemplate.cfm");
13		$abort();
14	</cfscript>
15</cffunction>