Created
October 25, 2013 09:37
-
-
Save iporsut/7152142 to your computer and use it in GitHub Desktop.
Application.cfc Template for Railo 4.x.x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component { | |
this.name = "MyApp"; | |
this.sessionManagement = true; | |
this.sessionTimeout = createTimeSpan(30,0,0,0); | |
boolean function onApplicationStart() { | |
echo("<h1>Start Application</h1>"); | |
return true; | |
} | |
void function onSessionStart() { | |
echo("<h1>Start Session</h1>"); | |
} | |
boolean function onRequestStart(required string targetPage) { | |
echo("<h1>Start Request #arguments.targetPage#</h1>"); | |
return true; | |
} | |
void function onRequest(required string targetPage) { | |
include template = arguments.targetPage; | |
} | |
void function onCFCRequest(required string CFCName, required string methodName, required array args) { | |
echo("<h1>Start CFC Request #arguments.CFCName#"); | |
} | |
void function onRequestEnd(required string targetPage) { | |
echo("<h1>End Request #arguments.targetPage#</h1>"); | |
} | |
boolean function onMissingTemplate(required string targetPage) { | |
echo("<h1>Missing Template #arguments.targetPage#"); | |
return false; | |
} | |
// void function onError(required any Exception, required string EventName) { | |
// } | |
void function onSessionEnd(required struct SessoinScope,required struct ApplicationScope) { | |
} | |
void function onApplicationEnd(required struct ApplicationScope) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment