|
|||
|
Have just started using ZF - my only experience with frameworks previously is Mojavi.
Slowly getting my head around it, but having a strange problem with error handling. I've got a plugin that appends the site header and footer to the body in preDispatch() and postDispatch() respectively. The problem I have is that when it goes to the error page (e.g. if I try to access a URL that doesn't exist), the header and footer are added twice. Is there something I need to change in the error page, or am I taking the wrong approach with the header and footer? Actually, there is one other weird thing with the error page. The response getHttpResponseCode() seems to always return 200. Surely it should be 404 in the case above? TIA, Mark
__________________
This signature intentionally left blank |
![]() |
| Thread Tools | |
| Display Modes | |
|
|