That, or assign it from within a controller's action (which might be more appropriate:

$this->view->flashMessenger = $this->_helper->FlashMessenger;

But technically, you should probably simply pass the messages to the view without giving them full access to the object:

if ($this->_helper->FlashMessenger->hasMessages()) {
  $this->view->messages = $this->_helper->FlashMessenger->getMessages();
}

Cheers,
Ralph

Diego Potapczuk wrote:
Ok, i think i found it:

$this->_flashMessenger = Zend_Controller_Action_HelperBroker::getStaticHelper('flashMessenger');




::: Diego Potapczuk


On Tue, Jan 5, 2010 at 3:13 PM, Diego Potapczuk <[email protected] <mailto:[email protected]>> wrote:

    How can i get the FlashMessenger inside a View Helper? I already saw
    it somewhere how to get a controller_action_helper, but i can“t find.



    ::: Diego Potapczuk


Reply via email to