php - Symfony routing to external site including session value -


I'm porting a legacy system that uses Symphony framework is virtually no experience on the symphony to me.

I must overwrite a way to perform an action on an external site and

The current routing.yml code

  mysystemtool: url: /: module / mysystemtool / tools / * ultimate: {action: Mysystemtool}   

me http: / Need to redirect to a URL such as /thirdpartyurl.com/?session_param=session_value

How to do it?

Routing is only for internal content because you can not route it It has been said that you can not control the controller can redirect to:

  public function Nishpadnmaissistmolol (sfWebRequest $ request) {$ param = $ this-> getUser () - & gt; GetAttribute ('session_param', 'default_value'); $ This- & gt; Redirect ('http://thirdpartyurl.com?session_param='.param); }   

Of course you need your actions.class.php set up a module so that you can address this behavior, but if you have an existing If action takes you must change logic only in action

Comments