hi,
I'm not able to read the messages from FlashMessenger after redirect.
I've learnt the Q. Zervaas book and i applied your method:
PHP Code:
class CustomControllerAction extends Zend_Controller_Action
{
public $db;
public $breadcrumbs;
public $messenger;
public function init()
{
$this->db = Zend_Registry::get('db');
$this->breadcrumbs = new Breadcrumbs();
$this->breadcrumbs->addStep('Home', $this->getUrl(null, 'index'));
$this->messenger = $this->_helper->_flashMessenger;
// $this->messenger = $this->_helper->getHelper('FlashMessenger');
}
...
public function postDispatch()
{
$this->view->breadcrumbs = $this->breadcrumbs;
$this->view->title = $this->breadcrumbs->getTitle();
$this->view->messages = $this->messenger->getMessages();
$this->view->isXmlHttpRequest = $this->getRequest()->isXmlHttpRequest();
$this->view->config = Zend_Registry::get('config');
}
I added the messages with $this->messenger->addMessage('message'), but, after redirect, getMessages() is empty.
Any Ideas?
Thanks
Ludo