blacktie24
blacktie24

Reputation: 5075

ZF Error Handler not working

I'm trying to set up custom error handling, so I setup an ErrorController.php file within the default module, under the controllers directory. However, when I try to go to access an invalid controller, an error is shown that an uncaught exception occurred. This bypasses the ErrorController file though, and when I print the contents of the response object, it does not show any exceptions. Does anyone know what I might be doing wrong here? Cheers!

Upvotes: 0

Views: 532

Answers (1)

blacktie24
blacktie24

Reputation: 5075

Ok I fixed the issue, apparently all I needed to do was add the following code: $front->throwExceptions(false);

Upvotes: 1

Related Questions