Symfony Routing: sf_format default value
Having the following route:
blog_rss_comments:
url: /blog/feeds/:type/comments.:sf_format
param: {module: blog, action: feedComments }
requirements: { sf_metho开发者_StackOverflowd: get, sf_format: (?:rss|xml|html) }
Is it possible to add a default-sf_format setting, so I do not have to pass sf_format every time?
param
is where you can put default values.
param: {module: blog, action: feedComments, sf_format: html }
精彩评论