Application.cfc Skeleton

August 20th, 2007

Hcf8logo.jpgere is my Application.cfc Skeleton

<cfcomponent>
<cfset This.name = “TestApplication” >
<cfset This.Sessionmanagement=”True” >
<cfset This.loginstorage=”session” >

<cffunction name=”onApplicationStart” output=”false” hint=”Runs when ColdFusion receives the first request for a page in the application.” >
<cfreturn true >
</cffunction>
<cffunction name=”onApplicationEnd” output=”false” hint=”The application ends: the application times out, or the server is stopped” >
<cfargument name=”ApplicationScope” required=”true” />
</cffunction>

<cffunction name=”onError” output=”false” hint=”Runs when an uncaught exception occurs in the application.” >
<cfargument name=”Exception” required=”true” />
<cfargument type=”String” name=”EventName” required=”true” />
</cffunction>
<cffunction name=”onMissingTemplate” output=”false” hint=”Runs when a request specifies a non-existent CFML page.” >
<cfargument name=”targetPage” type=”string” required=”true” />
<cfreturn true />
</cffunction>

<cffunction name=”onSessionStart” output=”false” hint=”A session starts” >

</cffunction>
<cffunction name=”onSessionEnd” output=”false” hint=”A session ends” >

</cffunction>

<cffunction name=”onRequestStart” output=”false” hint=”A request starts” >
<cfargument name = “request” required=”true”/>

</cffunction>

<cffunction name=”onRequestEnd” output=”false” hint=”All pages in the request have been processed” >

</cffunction>

<!— <cffunction name=”onRequest” output=”false” hint=”This method can filter request contents.” >
<cfargument name=”targetPage” type=”String” required=”true” />
</cffunction> —>

</cfcomponent>

Leave a Reply

Spam protection by WP Captcha-Free