My application handles errors happily in development, both errors and exceptions. When I switch to production the application just returns a blank page as the config is set to not display errors. Is there a standard method in ZF for sending visitors to a nicely formatted ‘Page not found’ using a layout from the application so that they aren’t presented with a blank page. Thanks in advance.
My application handles errors happily in development, both errors and exceptions. When I switch
Share
Usually if you used the CLI to create the zend project it will already be able to do what you request. If you go the scripts/view/errors/error.phtml that will be the phtml file you can use to create the view you are looking to use.
Although if you did not use the CLI to create the zend project bellow is the generated ErrorController used
Note: this Controller was generated using Zend Version 1.10.0
and the view should be placed in the same location as stated earlier.