tags:

views:

6

answers:

0

within the two actions below, i changed the session variable callback and selectLabel public function actn1Action() { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender();

$ns = new Zend_Session_Namespace('temp');
$ns->callback = $this->getRequest()->getBaseUrl()."/callback1"; $ns->selectLabel = 'Label1';

}

public function actn2Action() { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender();

$ns = new Zend_Session_Namespace('temp');
$ns->callback = $this->getRequest()->getBaseUrl()."/callback2"; $ns->selectLabel = 'Label2' }

These session variables are accessed within a third action in another controller

public function selectAction() { $this->_helper->layout->disableLayout(); $ns = new Zend_Session_Namespace('temp');

if(!isset($ns->callback)) { $this->_helper->viewRenderer->setNoRender(); echo $this->view->translate("Invalid callback selected"); return; } if(!isset($ns->selectLabel))$ns->selectLabel = $this->view->translate("Selected"); $this->view->callback = $ns->callback; $this->view->selectLabel = $ns->selectLabel; }

i however notice that changes to the callback variable never reflect but changes to the selectLabel does reflect.

any ideas????