I'm working on a simple way of handling messages with Flash Messenger and
would like any advice I can get before I dive in. First my flash message
needs to handle a type of message, the error message itself and a way for
the user to click a specific specified return to page link.  So far all I
see is that I can access the addMessage accessor. A work around is that the
addMessage accessor accepts an array which is very useful. I can pass in an
array knowing what to look for in my FlashController. Does below seem like a
viable solution or is there a better way? I'm currently using Zend Framework
1.6.

 

$this->_helper->flashMessenger->addMessage(array('error' => 'This is a test
Flash message...', 'controller' => 'modules', 'action' => 'add'));

$this->_redirect('/admin/flash');

 

Thanks 

 

Thomas Shaw

[EMAIL PROTECTED]

 

Reply via email to