Found sth like this:
But maybe there's a more cleaner solution to this.Code:$this->_response->setRedirect("/register");
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?
Found sth like this:
But maybe there's a more cleaner solution to this.Code:$this->_response->setRedirect("/register");