Many of the web applications need to be redirected to some given URI sooner or later. In that scenario like redirecting to the profile page after login, which is very common to almost every app, you need to change the URI of the browser after the login form is validated. You can make this by simply using the built in header function in PHP. In other terms the most popular method to redirect in Zend Framework, don’t know why, but this is the _forward method of the controller actions:
$this->_forward('action-name');
The problem here is that thus you get to the given action name, or controller/action but the URI of the browser stays as it is from the caller action.
If you’d like to redirect, like the header function will do it you should use the following construction:
$this->_helper->redirector->gotoRoute(array(
'controller'=> 'contrlname',
'action' =>'actionname'));