Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Created April 30, 2012 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coreymcmahon/2557767 to your computer and use it in GitHub Desktop.
Save coreymcmahon/2557767 to your computer and use it in GitHub Desktop.
An exmaple of a complex Symfony routing rule from the official documentation - http://www.symfonycentral.com
article_show:
pattern: /articles/{culture}/{year}/{title}.{_format}
defaults: { _controller: AcmeDemoBundle:Article:show, _format: html }
requirements:
culture: en|fr
_format: html|rss
year: \d+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment