Development

#5013 (Add sfGotoRoute)

You must first sign up to be able to contribute.

Ticket #5013 (new enhancement)

Opened 5 years ago

Last modified 4 years ago

Add sfGotoRoute

Reported by: rs Assigned to: fabien
Priority: minor Milestone:
Component: other Version: 1.2.0
Keywords: Cc:
Qualification: Design decision

Description

This patch complete the patches of #5005 by adding a route able to jump to another route by name during parsing.

Example usage in routing.yml:

mygotoroute:
  url: ^/prefix
  class: sfGotoRoute
  options: { route: route_name }

If the URL start with /prefix, jump directly to the route name "route_name" and continue parsing.

Attachments

0002-Add-sfGotoRoute-mostly-like-sfJumpRoute-except-it-t.patch (5.4 kB) - added by rs on 11/20/08 19:36:06.
sfGotoRoute.patch

Change History

11/20/08 19:36:06 changed by rs

  • attachment 0002-Add-sfGotoRoute-mostly-like-sfJumpRoute-except-it-t.patch added.

sfGotoRoute.patch

11/20/08 19:36:35 changed by rs

Please ignore "0003-Add-sfPatternSubRouting-allowing-to-group-routes-to.patch"... grumbl

01/11/09 13:54:36 changed by dwhittle

  • version set to 1.2.0.
  • qualification changed from Unreviewed to Design decision.