CFWheels

Plugins
What you've got loaded..

Exception Render

This plugin adds a new method that can be used in "/events/onerror.cfm", "/events/onmaintenance" and "/events/onmissingmethod.cfm" to reuse the wheels framework to render exception pages. The methods include:

  • exceptionRender(route, controller, action, key, params)

Call this method from from the files listed above to reuse 100% of your existing code. This plugin has a couple of benefits which include:

  • Response codes 404 and 500 are preserved.
  • 100% reuse of your existing layouts and templates. No need to duplicate your layouts in onerror.cfm and onmissingtemplate.cfm
  • Coldfusion still catches errors that occur in onerror() and onMissingMethod() so you application will never hang from errors created inside of the error trapping system.

If you have a complex application this can save you time since you would no longer need to duplicate layouts, templates, etc.

Examples

Just put the one of the code samples below into the files listed at the top to render error pages.

<cfoutput>
	#exceptionRender(route="yourExceptionRoute", action="yourExceptionAction")#
</cfoutput>	
		

- or -

Just put the one of the code samples below into the files listed at the top to render error pages.

<cfscript>
	#WriteOutput(exceptionRender(route="yourExceptionRoute", action="yourExceptionAction"))#
</cfscript>	
		

Uninstallation

To uninstall this plugin simply delete the /plugins/ExceptionRender-0.1.zip file.

Credits

This plugin was created by James Gibson.

<<< Go Back