Skip to content

Instantly share code, notes, and snippets.

@sigmaprojects
sigmaprojects / gist:2847936
Created June 1, 2012 01:35
get handler and events
private void function generateAllPossibleNonExistentRules() event=false {
var configStruct = getSettingsBean().getConfigStruct();
var HandlersInvocationPath = configStruct.HandlersInvocationPath;
var RegisteredHandlers = configStruct.RegisteredHandlers;
var HandlerEvents = {};
for(var i = 1; i<=ListLen(RegisteredHandlers);i++) {
var thisHandler = listGetAt(RegisteredHandlers,i);
var thisHandlerPath = HandlersInvocationPath & '.' & thisHandler;
// Application.cfc
public boolean function onRequestStart(String targetPage){
if(structKeyExists(url,"ormreload")) {
ORMReload();
}
return true;
}