I have wrote a custom 404 Page Not Found
page.
But where I have to put it in my Zend Application structure and how to show it?
When a controller couldn't be found I receive an Invalid controller specified (dsa)
error.
And when an action couldn't be found I receive an Action "wqe" does not exist and was not trapped in __call()
error.
Shortly, I don't want these errors.
How can I detect if the page is not found before rendering? And when I detect it, how can I show my custom error page. At the moment I receive the errors from above but the layout is still displayed.
Do I need some .htaccess
rules? Or it can be done with some Zend stuff.