Results 1 to 2 of 2

Thread: Return to page on error

  1. #1
    Bjorn121 is offline Junior Member
    Join Date
    May 2009
    Posts
    10

    Default Return to page on error

    I have a page, which submits a form to a controller. I don't have a lot of experience with Zend, so maybe there's an easy solution to this problem .

    What I haven't found up till now, is what to do when validation in a controller fails. In other web frameworks (I'm used to working with Java frameworks). So, you enter the dispatch method in the controller and there are some validations. What happens when validation fails and you have to return to the page?

  2. #2
    Bjorn121 is offline Junior Member
    Join Date
    May 2009
    Posts
    10

    Default

    Found sth like this:

    Code:
    $this->_response->setRedirect("/register");
    But maybe there's a more cleaner solution to this.

Similar Threads

  1. page not found error when i have more modules
    By murugesanme in forum Internationalization (i18n) & Localization (l10n)
    Replies: 0
    Last Post: 05-04-2010, 11:21 AM
  2. An error occurred & page not found
    By murugesanme in forum Installation & Configuration
    Replies: 0
    Last Post: 05-03-2010, 06:26 PM
  3. Partial page rendering and end of script header error
    By bentobenji in forum Model-View-Controller (MVC)
    Replies: 1
    Last Post: 02-04-2010, 01:13 PM
  4. Replies: 0
    Last Post: 07-29-2009, 12:06 PM
  5. Error Page
    By MarkP in forum General Q&A on Zend Framework
    Replies: 0
    Last Post: 11-07-2007, 03:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •