Skip to content

Instantly share code, notes, and snippets.

@pilot
Created August 17, 2012 09:46
Show Gist options
  • Save pilot/3377504 to your computer and use it in GitHub Desktop.
Save pilot/3377504 to your computer and use it in GitHub Desktop.
UserBundle_users_list:
   pattern:  /users/{page}.{_format}
   defaults: { _controller: UserBundle:Users:list, page: 1, _format: html }
   requirements:
      _format:  html
@pilot
Copy link
Author

pilot commented Aug 17, 2012

I want:

  • /users.html
  • /users/2.html

but this route will generate:

  • /users/1.html
  • /users/2.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment