E
E
evilray2014-01-09 03:53:21
symfony
evilray, 2014-01-09 03:53:21

How to do dynamic routing in symfony2?

I want something similar to routing in mvc.net:

my_route_name:
    pattern: /{controller}/{action}/{id}/
    defaults: { _controller: "AcmeMyBundle:{controller}:{action}", id: 0, action: index, controller: main }

Dynamic routing from symfony cmf didn't light up.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
k0t0vsky, 2014-01-09
@evilray

Through custom Route Loader.
Smoke a doc: symfony.com/doc/current/cookbook/routing/custom_ro...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question