Port of Radiant CMS to Symfony2
PHP JavaScript CSS
Latest commit 53d9cb4 Nov 19, 2013 @marekkalnik marekkalnik Merge pull request #81 from marekkalnik/bugfix/remove-user-form
Remove unused form layout
Failed to load latest commit information.
Controller Make tests pass with Symfony 2.3 Jun 21, 2013
DataFixtures/ORM [DataFixtures] Fix missing publishedAt in page fixtures Jun 10, 2012
DependencyInjection Register Twig extensions properly Feb 18, 2013
Entity Uppercase pre* and post* in doctrine annotations Feb 21, 2013
Extensions/Twig Check if ESI enabled in snippet renderer Sep 16, 2013
Extractor Allow using LayoutExtractor for to extract layout Dec 3, 2012
Form
Repository Fix CS but it seems weird Jun 10, 2012
Resources Remove unused form layout Nov 19, 2013
Tests Change class inheritance for backwards compatiblity Sep 16, 2013
Validator [sf2.3.x] Fix Layout actions Jun 16, 2013
.gitignore Ignotre .swp files Jun 3, 2012
.travis.yml Drop symfony 2.1 support Sep 16, 2013
README.md Typo bugfix Oct 28, 2013
TheodoRogerCmsBundle.php Thoth to Roger Oct 22, 2011
composer.json Drop symfony 2.1 support Sep 16, 2013
phpunit.xml.dist Cleanup and composer.lock update Oct 9, 2012

README.md

Theodo RogerCMSBundle

WARNING: This bundle is still under developpement. While it is functional, the service names, configuration options etc. may change without worrying about BC breaks.

Installation

Step 1: Adding the bundle to your project

Add the Roger repository to your composer.json file:

"require": {
    "theodo/roger-cms-bundle": "dev-master"
}

Then run

$ php composer.phar update theodo/roger-cms-bundle

Step 2: AppKernel.php

Enable TheodoRogerCmsBundle and StofDoctrineExtensionsBundle in app/AppKernel.php:

public function registerBundles()
{
    $bundles = array(
        ...
        new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
        new Theodo\RogerCmsBundle\TheodoRogerCmsBundle(),
    );
}

Step 3: Update database

$ php app/console doctrine:schema:update --force

Step 4: config.yml

Add StofDoctrineExtensions:

stof_doctrine_extensions:
    orm:
        default:
            timestampable: true
            sluggable: true

Step 5: Define RogerCms routes

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

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

step 6: Add roles

Add RogerCms roles in app/config/security.yml:

security:

    ...

    role_hierarchy:
        ROLE_ROGER_CONTENT:   [ROLE_ROGER_READ_CONTENT, ROLE_ROGER_WRITE_CONTENT, ROLE_ROGER_DELETE_CONTENT, ROLE_ROGER_PUBLISH_CONTENT]
        ROLE_ROGER_DESIGN:    [ROLE_ROGER_READ_DESIGN, ROLE_ROGER_WRITE_DESIGN, ROLE_ROGER_DELETE_DESIGN]
        ROLE_ROGER_EDITOR:    [ROLE_ROGER_CONTENT, ROLE_ROGER_READ_DESIGN]
        ROLE_ROGER_DESIGNER:  [ROLE_ROGER_CONTENT, ROLE_ROGER_DESIGN]

        ROLE_ADMIN:           [ROLE_USER, ROLE_ROGER_DESIGNER]
        ROLE_SUPER_ADMIN:     [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

    providers:
        in_memory:
            memory:
                users:
                    admin: { password: admin, roles: [ 'ROLE_ADMIN' ] }

    firewalls:
        dev:
            pattern:  ^/(_(profiler|wdt)|css|images|js)/
            security: false

        login:
            pattern:  ^/demo/secured/login$
            security: false

        secured_area:
            pattern:    ^/demo/secured/
            form_login:
                check_path: _security_check
                login_path: _demo_login
            logout:
                path:   _demo_logout
                target: _demo

        roger_admin:
            pattern:    ^/admin
            http_basic:
                realm: "Secured Demo Area"

    ...

Then go to /admin and log in.

Step 7: Read the docs

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