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'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">
<cferror type="exception" exception="any" template="oops.cfm" mailto="me@mydomain.com">
More discussions in Getting Started
adobe
Comments
Post a Comment