开发者

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 }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜