-
Notifications
You must be signed in to change notification settings - Fork 10
/
Action.cfc
25 lines (23 loc) · 859 Bytes
/
Action.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
<cfcomponent hint="CfTracker" extends="railo-context.admin.plugin.Plugin">
<cfset variables.fw1 = CreateObject('component', 'FakeApplication').init() />
<cffunction name="init" hint="this function will be called to initalize">
<cfargument name="lang" type="struct">
<cfargument name="app" type="struct">
</cffunction>
<cffunction name="overview" output="true" hint="this is the main display action">
<cfargument name="lang" type="struct">
<cfargument name="app" type="struct">
<cfargument name="req" type="struct">
<cfscript>
variables.fw1.configApplication();
url.action = url.pluginAction;
if (Not StructKeyExists(url, 'fw1action')) {
url.action = 'main.default';
} else {
url.action = url.fw1action;
}
variables.fw1.onRequestStart('');
variables.fw1.onRequest('');
</cfscript>
</cffunction>
</cfcomponent>