Port of Radiant CMS to Symfony2
JavaScript PHP Other
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits ahead, 170 commits behind phc:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Controller
DataFixtures/ORM
DependencyInjection
Entity
Extensions/Twig
Fixtures/Symfony
Form
Repository
Resources
Tests
Validator
.gitignore
LICENSE
README.md
TheodoRogerCmsBundle.php
phpunit.xml.dist

README.md

Theodo RogerCMSBundle

WARNING: This bundle is still under developpement and is not considered stable.

Installation

Step 1: Downloading the bundle

To add the bundle to your project add the following entry to your deps file:

[RogerCmsBundle]
    git=https://github.com/theodo/TheodoRogerCmsBundle.git
    target=/bundles/Theodo/RogerCmsBundle

Step 2: Dependencies

Using the vendors script

Add the following lines to your deps file:

[DoctrineExtensionsBundle]
    git=https://github.com/stof/StofDoctrineExtensionsBundle.git
    version=origin/master
    target=/bundles/Stof/DoctrineExtensionsBundle

[DoctrineExtensions]
    git=http://github.com/l3pp4rd/DoctrineExtensions.git
    version=origin/master
    target=/gedmo-doctrine-extensions

Notice: TheodoRogerCms depends on Twig and it's not usable without it. Due to some bugs in previous versions of Twig, v 1.2.0 or higher is required.

Step 3: AppKernel.php

Add the following line to your app/AppKernel.php file: new Theodo\RogerCmsBundle\TheodoRogerCmsBundle(),

    public function registerBundles()
    {
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new Symfony\Bundle\TwigBundle\TwigBundle(),

            [...]

            new Theodo\RogerCmsBundle\TheodoRogerCmsBundle(),
        );

Follow StofDoctrineExtensionsBundle's doc to add the configuration for timestampable behavior.

Step 4: Routing

Add the following lines to your app/config/routing.yml file:

RogerCms:
    resource: "@TheodoRogerCmsBundle/Resources/config/routing.yml"
    prefix: /

Step 5: Database and entities

RogerCMS uses database to store all content informations, so you need to add its entities to your entity manager. As it also uses his own user management system it may be a good idea to use a separate database. For further informations on how to setup and manage a separate database connection for the CMS, refer to 99-multiple_databases.md file.

If you don't feel like having Roger in separate db, the Symfony Standard Edition default config will work out of the box. Just generate your schema/migrations and update your db.

Step 6: Read the docs

For more documentation, check out the Resources/doc folder.