I have simple question. Is there any way to use routing in cotroler to get from link like this:
some-text-link-282237
value 282237.
By now i’m passing whole url by:
@Route("/route/{id}", name="my_route")
and then preg matching it, but maybe there is a cleaner way. The value is allways at the end of string separate by last (-)
Thanks for any help, and sorry for language errors
1 Answer