Hi
I would like to pass a variable from one Controller Action to another and display the value on the view script.
class ImportController extends Zend_Controller_Action
{
public function ImportrecordsAction()
{
//Do some processing and in this case I select
//23 to be the value of total records imported;
&totalcount = 23;
//On success go to success page;
$this->_redirect('/import/success');
}
public function SuccessAction()
{
//Display the value at the resulting view
$this->view->count = &totalcount;
}
}
However the &totalcount is returning no value meaning that the variable is not passed to the next action.
How can I solve this?