Created
April 30, 2012 12:14
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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