Site error (cferror)


hi,
i'm using 2 lines of code (below) in application.cfc file:

as have noticed, first cferror has template referenced relative path. way to allow page load, second line throws error " error resolving template". although application.cfc , both of templates on root! have files inside folders, can understand need of relative path, thought 1 should not use relative path in case , whole idea behind having error templates in same place application.cfc.

but when generate error, not find template again, meaning ../../errorrequest.cfm not found when actual error occurs!
any suggestions?

i think should either use request-type (which fires upon error) or exception-type (which fires upon specific or general exception), not both. suggest use

<cferror type="exception" exception="any" template="oops.cfm" mailto="me@mydomain.com">



More discussions in Getting Started


adobe

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62