Is there a way to communicate between Zend Modules as stated below?
I want $sVariable to return “bla”. But it gives me
Zend_Controller_Action_Helper_ActionStack Object.
In one module call:
$sVariable = $this->_helper->actionStack('login', 'index', 'user');
echo $sVariable;
And in the other module:
class User_IndexController extends Zend_Controller_Action
{
public function loginAction()
{
return "bla";
}
}
An option was using Zend_Regsitry. In loginAction() you can do:
And to get it back you can do.
But it was messy. So i moved what was in my controller action to a helper. That fixed my problems.