Ok, so the Flash Messages are working if I do a _redirect(), but I can't seem
to display them if I do not redirect and, instead, only _forward(). Then
the messages are not displayed until the next request. I can get around
this, but I am curious as to why they do not show up even if I put the
getMessages() in the postDispatch():
public function postDispatch()
{
$this->view->flash_messages = $this->_flashMessenger->getMessages();
parent::postDispatch();
}
Shouldn't this capture the new messages in the editAction()?
David Mintz-3 wrote:
>
> On Wed, Sep 10, 2008 at 8:42 AM, stav <[EMAIL PROTECTED]> wrote:
>> application/layouts/layout.phtml
>> print_r($this->flash_messages);
>
> ooh, snazzy! -- just don't hold your breath waiting for web page design
> awards. :-)
>
Hey, what's wrong with print_r() showing Array ( [0] => 'Hey, some message'
)? I think its just so great. ;-)
--
View this message in context:
http://www.nabble.com/Inter-page-messaging---How-do-I-display-information-in-my-layout--tp19408777p19415043.html
Sent from the Zend Framework mailing list archive at Nabble.com.