Added: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ticket/492
Yes, it will be good to have the default and then anyone who want to
handle it differently can override in application.cfc.
I'm not sure if the example you gave below will work. I have it setup
with cflocation.
<cffunction name="onMissingTemplate" returnType="boolean"
output="false">
<cfargument name="template" type="string" required="true">
<cflocation url="index.cfm/event/exception.missingTemplate">
</cffunction>
I will play with it later and post a working code without cflocation
(in case yours doesn't work) .
On Jan 12, 3:47 pm, "Peter J. Farrell" <[email protected]> wrote:
> I encourage you to file a ticket at trac.mach-ii.com
>
> We haven't shipped with onMissingTemplate in the past because it
> appeared that not everybody handles this in the same way. It is a snap
> to add in yourself if you want:
>
> <cffunction name="onMissingMethod">
> <cfset form.event = "sys.missingTemplate" />
> <cfset handleRequest() />
> </cffunction>
>
> We'll look into adding this in 1.9.
>
> Best,
> .Peter
>
> Sumit Verma said the following on 12/01/10 14:24:
>
> > That way we can avoid this type of errors:http://www.mach-ii.com/abc.cfm
>
> > On Jan 12, 3:20 pm, Sumit Verma<[email protected]> wrote:
>
> >> Hi Guys,
>
> >> Noticed that Mach-II framework doesn't come with onMissingTemplate
> >> method. Would it make sense to add that so 404 errors can be handled
> >> as normal Mach-II exceptions? Of-course we can add it to our
> >> application.cfc, but I think it might be good to have it in the mach-
> >> ii.cfc with all the application specific event.
>
> >> Thoughts?
> >> Sumit
--
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets:
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/