Ok, now it renders twice in production as well... sigh. Redirecting works, forwarding does not.
Thanks for further comments, Andreas andreas schrieb: > No, it's just a plain HTML page, no ajax whatsoever. > > *However* > > Writing the above, I had the idea to try in prod environment - and it > works. So while my problem is kinda solved, this now seems more like a > bug than before... can anybody confirm this? Could this be the debug > toolbar? > > This is sf 1.1.5, btw. > > Andreas > > > > > > Gareth McCumskey schrieb: >> Is this forward being asynchronously (Ajax) loaded into a div? If that >> is the case I have experienced the same issue and just use setTemplate >> as opposed to forward to ensure that only the template and not the >> entire page is loaded into the div >> >> On Mon, Nov 24, 2008 at 4:39 PM, andreas <[EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]>> wrote: >> >> >> Hi, >> >> I have a filter that must forward to one module/action depending >> on some >> condition (redirect is not an option). >> When the forward happens, the entire layout is rendered twice. >> >> I have found a thread about it here: >> http://www.symfony-project.org/forum/index.php/m/51301/ >> >> But I don't really believe that's the real solution, because: >> >> - it's a hack >> - it's from April, I suppose more people would have encountered this >> problem >> - forwarding in filters is part of the official documentation, so it >> should work without the hack, I guess >> >> My code: >> >> public function execute($filterChain) >> { >> if ($this->isFirstCall()) >> { >> [...] >> if ($someCondition) >> { >> $this->getContext()->getController()->forward('module', >> 'action'); >> } >> } >> $filterChain->execute(); >> } >> >> >> Thanks for any suggestions, >> Andreas >> >> >> >> >> >> >> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---