i have a situation like this
public function loginAction(){
//my other code
if(!empty($errorMessage)){
$this->view->assign('error',$errorMessage);
}
}
public function authAction(){
//my other code
if($result->isValid()){
$this->_redirect('/currentcontroller/controlpannel');}
else{
$errorMessage = "Wrong username or password provided. Please try again.";
$this->_redirect('/currentcontroller/login');
}
i want to pass $errorMessage to login action in else how to pass it and than how to retrive it there ??