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