I have a Symfony2 project and I would like to be able to create routes on the fly. For example, I have a database conected with the project and for each element from a specific table, I would like to create a route like main/help/$help_id.
I can’t find a tutorial on how to do it.
You definitely do not need dynamic routes for that.
Then, in your controller action: