Adds the ability to retrieve routes from a database table
- Page Model is extensible
- Requires Doctrine ORM
git submodule add git://github.com/lvanderree/DbRoutingBundle.git src/Bundle/DbRoutingBundle
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Bundle\DbRoutingBundle\DbRoutingBundle(),
// ...
);
}
# app/config/config.yml
# ...
imports:
- { resource: @DbRoutingBundle/Resources/config/routing.xml }
# app/config/routing.yml
# ...
pages:
resource: CmsBundle:Page
type: db
You must create a Page class, that at least implements the methods mentioned in the PageInterface