Creating a Basic CMS using the RoutingAutoBundle
Creating a Basic CMS using the RoutingAutoBundle¶
This series of articles will show you how to create a basic CMS from scratch using the following bundles:
It is assumed that you have:
- A working knowledge of the Symfony 2 framework;
- Basic knowledge of PHPCR-ODM.
The CMS will have two types of content:
- Pages: HTML content accessed at, for example
- Posts: Blog posts accessed as
The auto routing integration will automatically create and update the routes (effectively the URLs with which you can access the content) for the page and post content documents. In addition each page content document will double up as a menu item.
There exists a bundle called SimpleCmsBundle which
provides a similar solution to the one proposed in this tutorial. It
combines the route, menu and content into a single document and uses a
custom router. The approach taken in this tutorial will combine only the menu
and content into a single document, the routes will be managed
automatically and the native CMF
DynamicRouter will be used.
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.