Hello,
It seems that using 1.2.0, flashSession is not keept after redirect. Please advice.
$di['session'] = function() {
$session = new \Phalcon\Session\Adapter\Files();
$session->start();
return $session;
};
$di['flashSession'] = function(){
return new \Phalcon\Flash\Session(array(
'error' => 'alert alert-error',
'success' => 'alert alert-success',
'notice' => 'alert alert-info',
));
};
public function A() { $this->flashSession->success('You did it !'); $this->response->redirect('b'); }
public function B() { print_r($this->flashSession->getMessages()); // Will have no messages }