Used session in my page but expected output not coming for me.i am using
ZendSkeletonApplication and ZfcUser
in view/done.phtml
$sessionContainer = new \Zend\Session\Container('myNameSpace');
$checking="Got it";
$sessionContainer->myVar = $checking;
In Controller/UserController.php
public function doneAction()
{
$result=$this->getRequest()->getPost();
$sessionContainer = new \Zend\Session\Container('myNameSpace');
$confirmation=$sessionContainer->myVar;
print_r($confirmation);
return new ViewModel();
}
Please help me
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/How-to-pass-value-from-view-to-controller-without-using-anchor-tag-and-forms-in-Zend-Framework-2-tp4659476.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]