+1 too for route and redirect

On Jul 17, 12:01 pm, Pierre <[EMAIL PROTECTED]> wrote:
> Why don't you create an action in your default module, which accepts a
> "route" and "type" parameter. This arameters could be set in the
> "param:" set, so you've just to write:
>
> signin_redirect:
>   url: /signin
>   param: { module: default, action: oldUrlRedirect, route: '@login',
> type: 'redirect', status: 301 }
>
> See the status parameter, you could extend this ... I think that
> should solve your problem.
>
> Cheers,
> Pierre
>
> On Jul 9, 7:28 pm, Marijn <[EMAIL PROTECTED]> wrote:
>
> > Hi everybody,
>
> > this week I was wondering if symfony is able to create an alias for a
> > routing rule. What I would prefer is something that allows the
> > developer to specify an alias url for a certain module, action and
> > additional parameters that either is redirected or simply forwarded to
> > a named routing rule from the routing.yml file.
>
> > E.g.
>
> > login:
> >   url:      /login/
> >   param:
> >     module: sfGuardAuth
> >     action: signin
>
> > signin_alias_redirect:
> >   url:      /signin/
> >   alias:   [EMAIL PROTECTED]
> >   routing:  redirect
>
> > signin_alias_forward:
> >   url:      /sign-in/
> >   alias:   [EMAIL PROTECTED]
> >   routing:  forward
>
> > It seems to me that this would be a behavior that more developers
> > might like. Is there something like this out there in the form of a
> > plugin or should I file a ticket on this? What are your thoughts?
>
> > Thanks,
>
> > Marijn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to