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
--
View this message in context:
http://www.nabble.com/FlashMessenger-tp21917164p21917164.html
Sent from the Zend Framework mailing list archive at Nabble.com.