Thread: 404 Pages
Created on: 12/03/08 07:46 AM
| New topic Reply | Page: 1 |
| Replies: 0 | |
| demonangel
|
12/03/08 7:46 AM I've added the following to my application.cfc file: <!--- Fired when user requests a CFM that doesn't exist. ---> <cffunction name="onMissingTemplate"> <cfargument name="targetPage" type="string" required=true/> <!--- Use a try block to catch errors. ---> <cftry> <cfinclude template="error_404.cfm" /> <cfreturn true /> <!--- If an error occurs, return false and the default error handler will run. ---> <cfcatch> <cfreturn false /> </cfcatch> </cftry> </cffunction> And I essentially copies the error.cfm and the skins/myskin/error.cfm to error_404.cfm and It doesn't appear that my 404 pages are loading. Thoughts? I'm thinking it could be my webserver, however I've used it the code snipplet before without issue... "...may you bow your head, as others look up to you..."
|
| Link | Top | Bottom | |
New Post