if you want to pass a variable to another controller, u can use either of the ff:
_redirect()
_forward() // works if you want to pass an array
class BasicController extends Zend_Controller_Action
{
public function indexAction()
{
$name = "alex";
$arrName = array (
'firsname' => "myFirstName",
'lastname => "myLastName");
// if you want to pass variable name:
//STRUCTURE: controller/action/variableName/value
$this->_redirect('bio/index/name/$name");
//if you intend to pass an array:
//STRUCTURE: 'action', 'controller', $array
$this->_forward('index', 'bio', $arrName);
}
}
-----------------------------
class BioController extends Zend_Controller_Action
{
public function indexAction()
{
//for sample #1
$name = $this->getRequest()->getParam(''name');
}
}
hope this could help.