Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-07-2007, 04:00 AM
Junior Member
 
Join Date: Nov 2007
Location: Sydney, Australia
Posts: 1
Question Error Page

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:21 AM.