You should do that in your layout.phtml file or in your action
controller view scripts...
Here's an example:
http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.flashmessenger
Bob O schrieb:
hello all,
Im trying to create a flash() that displays a message when the user needs to
be notified of something. e.g. "incorrect login" etc...
So i can get the message to display, but Im trying to wrap it in a div with
a defined class so i can control the behavior and look with CSS and JS
this is an idea of what im trying to accomplish
public function init()
{
parent::init();
$this->_flashMessenger =
$this->_helper->getHelper('FlashMessenger');
$this->_redirector = $this->_helper->getHelper('Redirector');
}
protected function flash($message,$to)
{
$wrapped_message = '<div class="notice">' + $message + '</div>';
$this->_flashMessenger->addMessage($wrapped_message);
$this->_redirector->gotoUrl($to);
}
Any help would be great
-----
Bob Hanson
Web Developer
SLC, UT