Hi,
this is probably a very simple question, but I haven't found any answer to it. I want to redirect the visitor to a view in another controller, but I want the $this-view-variables to be accesible from the new view. Eg:
PHP Code:
if(!Zend_Auth::getInstance()->hasIdentity()){
$this->view->errorMessage="Please do login";
$this->_forward('login');
}
This gives me the following error message: Fatal error: Uncaught exception 'Zend_Controller_Action_Exception' with message 'LinkController::userAction() does not exist and was not trapped in __call()' in.
I've tried with render and redirect. I cant get render to work and when I use redirect the view-variables that I want to pass on with the error message isn't set..