6 Replies Latest reply on Nov 30, 2015 12:45 PM by Steve Sommers

    onMissingTemplate function in Application.cfc

    WolfShade Level 4

      Hello, all,


      I'm trying to implement a process for missing templates, so that the user will never see a CF error message for missing pages.


      The problem is that even though it will trigger my onError function, it's still outputting CF errors at the bottom of the page.


      Here is my onMissingTemplate() function:


      <cffunction name="onMissingTemplate" returntype="boolean" output="false" >
          <cfargument name="template" type="string" required="true" />
          <cfset this.onRequestStart(arguments.template) />
          <cfset this.onRequest(arguments.template) />
          <cfreturn true />

      How can I get this to stop processing after displaying the onError page, so that it won't show the CF error mesages?