I have this same problem, currently I am addressing it by using this in my
Controller Base:

function postDispatch()
    {
                /*
                 * this is gonna be a headache later, I think...
                 */
        /* this handles messages across pages */
                if ($this->_flashMessenger->hasMessages()) {
                        foreach($this->_flashMessenger->getMessages() as 
$key=>$value)
                        {
                                $this->_logger->debug('FlashMessenger 
'.$key.'=>'.$value);
                        }
                        
                $this->view->messages = $this->_flashMessenger->getMessages();
                }
                /* this handles messages with the same request */
                if ($this->_flashMessenger->hasCurrentMessages()) {
                        foreach($this->_flashMessenger->getCurrentMessages() as 
$key=>$value)
                        {
                                $this->_logger->debug('FlashMessenger 
(Current)'.$key.'=>'.$value);
                        }
                        
                $this->view->messages = 
$this->_flashMessenger->getCurrentMessages();
                }
                
    }



Shekar C Reddy wrote:
> 
> Maybe, you could try write-closing and re-reading the session in the same
> request?
> 
> 
> 
> 
> 
> On 10/16/07, Andries Seutens <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I am not using redirect(), nor forward(). I would like to stay in the
>> current request.
>>
>> Best,
>>
>> Andries Seutens
>>
>> Shekar C Reddy schreef:
>> > I meant page redirect() instead of page forward(). Session write-closes
>> > and re-reads on redirect/exit.
>> >
>> >
>> >
>> >
>> > On 10/16/07, *Shekar C Reddy* <[EMAIL PROTECTED]
>> > <mailto:[EMAIL PROTECTED]>> wrote:
>> >
>> >     Andries,
>> >
>> >     I guess you need an exit() from the application for the
>> >     FlashMessenger to work as you expect. The reason it is working on
>> >     second page load may be due to the fact it is exiting the app
>> >     somewhere due to some condition.
>> >
>> >     Are you sure you are exit()ing the app on errors/result?
>> >
>> >     HTH
>> >
>> >
>> >
>> >
>> >     On 10/16/07, *Andries Seutens* < [EMAIL PROTECTED]
>> >     <mailto:[EMAIL PROTECTED]>> wrote:
>> >
>> >
>> >         lauren49 schreef:
>> >         >  Andries Seutens wrote:
>> >         >
>> >         > > Zend_Session_Namespace::setExpirationHops().
>> >         > >
>> >         > >
>> >         >
>> >         >  Oh, sweet! A much better solution than "I don't think that's
>> >         possible". :)
>> >         >  Thanks for posting it.
>> >         >
>> >         >  - Lauren
>> >         >
>> >
>> >         Apperently I was to quick. It still does not work.
>> >
>> >         Anybody has a clue how I can work around this issue?
>> >
>> >         Best,
>> >
>> >         --
>> >         Andries Seutens
>> >         http://andries.systray.be <http://andries.systray.be/>
>> >
>> >
>> >         Gecontroleerd op virussen door de JOJO Secure Gateway.
>> >
>> >
>> >
>> >
>> >
>> ------------------------------------------------------------------------
>> >
>> > No virus found in this incoming message.
>> > Checked by AVG Free Edition.
>> > Version: 7.5.488 / Virus Database: 269.14.12/1073 - Release Date:
>> 16/10/2007 8:22
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/FlashMessenger-and-Controller-plugins---Help-wanted-tf4566559s16154.html#a13252600
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to