stevewithington / MuraFW1

Base Mura CMS plugin using FW/1 as its application framework.
Apache License 2.0
27 stars 23 forks source link

doAction: fw1.onRequestEnd(cgi.script_name) missing #7

Closed marbetschar closed 12 years ago

marbetschar commented 12 years ago

The onRequestEnd EventHandler is never called from the fw/1 plugin template. Since I use this quite often for logging or ormFlush it'll be great if you could add it in the official release of the fw/1 plugin template in your pluginEventHandler.cfc:

<!--- call the frameworks onRequest --->
<!--- we save the results via cfsavecontent so we can display it in mura --->
 <cfsavecontent variable="result">
     <cfset fw1.onRequest(CGI.SCRIPT_NAME) />
 </cfsavecontent>

<cfif structKeyExists(fw1, 'onRequestEnd')><cfset fw1.onRequestEnd(CGI.SCRIPT_NAME) /></cfif>
stevewithington commented 12 years ago

Sorry for not responding sooner on this...but in any event, I don't see the onRequestEnd() method defined in framework.cfc (https://github.com/stevewithington/fw1/blob/master/org/corfield/framework.cfc).

That said, you could always fork this project and have your own customized version though!

Thanks!