On 14 Nov 2007, at 14:02, Angelina Talley wrote:
> Hello folks!

Hey there,

> I have a symfony app that's puzzling me. Currently, as an action  
> executes I set a flash message saying the action succeeded or  
> failed. I then return sfView::SUCCESS or just let the action  
> complete and return the success template. I have a spot in the  
> layout.php that looks for the flash message and displays it (code  
> for that section is below). However, if the user then clicks on a  
> new link or is redirected somehow, the message doesn't disappear. I  
> would think that a new request would clear the messages? Or is it  
> because it's layout.php that's displaying the message that it  
> doesn't go away?
>
> snippet from layout.php:

It's actually the code in your action which is most interesting. ;)

Have a look at: 
http://www.symfony-project.com/api/1_0/sfComponent#method_setflash
setFlash() takes a $persist parameter (true by default), which  
determines if the message stays till the next request.


Alexander

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to