Guest User

Untitled

a guest
Jul 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. app/routing.yml
  2. In this example, my Model is identified by A string + an id.
  3. That's why I specified requirements.
  4.  
  5. attached_file:
  6. class: sfDoctrineRouteCollection
  7. options:
  8. model: AttachedFile
  9. module: attachment
  10. prefix_path: /attachment
  11. column: obj_type/:obj_pk
  12. with_wildcard_routes: true
  13. requirements:
  14. obj_type: [a-zA-z-_]
  15. obj_pk: \d+
Add Comment
Please, Sign In to add comment