-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hi chris,
this approach sounds ok to me. you might realise that you want to have some routes outside your cms anyways, for applications that display data (like lists of pages or rss feeds). i guess the most fancy approach would be to hook deeper into the routing of symfony2 and use your own routing component instead of the default one. but if it works out ok for you like this, i think it is a valid approach. just make sure you only use that route for cms things only and build separate routes for urls that are not supposed to changed. by the way: you might be interested in the symfony cmf project. we want to build a content management framework, that can be used as common base for cms systems on top of symfony2 as well as to build custom cms-components into custom web applications. there is no finished library yet, information is at http://cmf.symfony.com cheers, david Am 16.03.2011 13:28, schrieb Chris: > Hey everyone, > > I'm fairly new to Symfony 2 and currently working on a content > management project. Since this project has just a single entry point > (PageController) to handle a regular request I want to skip the > routing process and always use one controller. The complex internal > routing (rewrite url => page) is done within this controller. > I'm not quite sure if this is the proper way to do it. The reason why > I did this in first place was that my routing system does not return a > simple array with _controller etc. but rather a complex > PageRouteResponse object with information needed by PageController. Is > it useful in this case to hook into the internal routing or am I right > with my approach? > > If I'm right, how do I redirect every request to a single controller? > > Cheers, > Chris > > - -- Liip AG // Agile Web Development // T +41 26 422 25 11 CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2EonUACgkQqBnXnqWBgItWeQCfQ6pvlcNP6hCycI7tyhmp1/6u WgsAn3Bh8tPoW2xN5OHcwbA9t16VmFqC =jv10 -----END PGP SIGNATURE----- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en