Skip to content

Instantly share code, notes, and snippets.

@muracms
Created November 7, 2013 05:22
Show Gist options
  • Select an option

  • Save muracms/7349403 to your computer and use it in GitHub Desktop.

Select an option

Save muracms/7349403 to your computer and use it in GitHub Desktop.
component {
/*
You must include the applicationSettings.cfm file to
share the same Application.cfc
*/
include "../../config/applicationSettings.cfm";
include "../../config/appcfc/onApplicationStart_method.cfm";
/*
There are actually 4 onRequestStart method includes:
onRequestStart_method.cfm
onRequestStart_scriptProtect_method.cfm
scriptProtect_include.cfm
onRequestStartinclude.cfm
The 'scriptProtect' versions run the request through Portcullis.cfc
In the below example it is creating its own onRequestStart function
and include the core Mura business logic.
*/
onRequestStart() {
include "../../config/appcfc/scriptProtect_include.cfm";
include "../../config/appcfc/onRequestStart_include.cfm";
}
include "../../config/appcfc/onRequestEnd_method.cfm";
include "../../config/appcfc/onSessionStart_method.cfm";
include "../../config/appcfc/onSessionEnd_method.cfm";
include "../../config/appcfc/onError_method.cfm";
include "../../config/appcfc/onMissingTemplate_method.cfm";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment