Stupid misstake. I called the messages partial before "setFormErrors".
On 19 Mai, 12:13, "[email protected]" <[email protected]> wrote: > no ideas? ':-{ > > On 7 Mai, 13:27, "[email protected]" > > <[email protected]> wrote: > > Hi all, > > > for sending an action feedback to the user I use in my actions this: > > > sfContext::getInstance()->getUser()->setMessage('My feedback'), > > 'warning'); > > > For output in my partial this: > > > <?php foreach($sf_context->getUser()->getMessageTypes() as > > $type) : ?> > > <?php if($sf_context->getUser()->hasMessages($type)) : ?> > > <ul class="message <?php print $type; ?>"> > > <?php foreach($sf_context->getUser()->getMessages($type) as > > $message) : ?> > > <li><?php echo $message; ?></li> > > <?php endforeach; ?> > > </ul> > > <?php endif; ?> > > <?php endforeach; ?> > > > I use this partial in different templates but only once. Caching is > > disabled. > > > The problem is now, that the feedback message sometimes appears not > > until 1-3 page refreshes/actions and I can't find the problem. > > > Do you have any ideas? > > > Thanks a lot for help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
