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]>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
-~----------~----~----~----~------~----~------~--~---

Reply via email to