-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApplication.cfc
45 lines (34 loc) · 1.11 KB
/
Application.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<cfcomponent
displayname="Application"
output="true"
hint="Handle the application.">
<!--- Set up the application. --->
<cfset THIS.Name = "playingornot" />
<cfset THIS.ApplicationTimeout = CreateTimeSpan( 0, 0, 1, 0 ) />
<cfset THIS.SessionManagement = true />
<cffunction
name="OnApplicationStart"
access="public"
returntype="boolean"
output="true"
hint="Fires when the application is first created.">
<cfset application.dsn = "playingornot">
<cfset application.base_url = "playingornot">
<cfset application.base_url = "http://playingornot">
<!--- Return out. --->
<cfreturn true />
</cffunction>
<cffunction
name="OnRequestStart"
access="public"
returntype="boolean"
output="true"
hint="Fires at first part of page processing.">
<cfif structKeyExists(url, "init")>
initting
<cfset onApplicationStart()>
</cfif>
<!--- Return out. --->
<cfreturn true />
</cffunction>
</cfcomponent>