Hi, i know already that, but what I want is this step that generate a url from route name it must be do internally.
this the class redirect of ZF2 https://github.com/zendframework/zf2/blob/master/library/Zend/Mvc/Controller/Plugin/Redirect.php Le lundi 10 septembre 2012 19:49:50 UTC, dbu a écrit : > > hi, > > if you extend the symfony base controller, you can simply do > > $this->redirect($this->generateUrl('url')); > > i don't think this is more complicated. the plus side is that you need > to remember only those two methods. generating an url for something else > than redirecting works the same way. > > cheers,david > > ps: makes me wonder what $this->redirect(); does in ZF2. point you to > the google "i'm feeling lucky"? > > Am 10.09.2012 12:59, schrieb jB!nfo: > > Hi all, > > > > Symfony2 redirection is done in two steps: > > > > 1. generate the URL from the route name > > 2. return the redirect response return $this->redirect('url'); > > > > so, my question is why not shortcut this two steps in one step like in > ZF2: > > > > return $this->redirect()->toRoute('album'); > > > > > > Regards, > > jB!nfo. > > > > -- > > If you want to report a vulnerability issue on symfony, please send it > > to security at symfony-project.com > > > > You received this message because you are subscribed to the Google > > Groups "symfony developers" group. > > To post to this group, send email to > > symfon...@googlegroups.com<javascript:> > > To unsubscribe from this group, send email to > > symfony-devs...@googlegroups.com <javascript:> > > For more options, visit this group at > > http://groups.google.com/group/symfony-devs?hl=en > > -- > Liip AG // Agile Web Development // T +41 26 422 25 11 > CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en