Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

onMissingTemplate function in Application.cfc

$
0
0

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 /></cffunction>

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

 

V/r,

 

^_^


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>