I would like to develop a CMS using Symfony 2 that has 2 bundles: one for pages and one for galleries (in the future there will be more bundles). All pages and galleries will be stored in database and they will be dynamically changed. I have two question about routing in this situation.
- What is a good pattern for adding a dynamical routing (using database) in symfony2? Is it a good practice to develop a central controller (dispatcher) that will redirect user to the correct bundle?
- I found in documentation that there is "CMF Dynamic Routing" http://symfony.com/doc/master/cmf/bundles/routing/dynamic.html is it possible to use it without any other part of CMF?
Regards,