Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Content management for LMS42
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Controller
DependencyInjection
Form/Type
Listener
Manager
Model
Resources
Tests/Controller
.gitignore
README.md
SmirikContentBundle.php
composer.json

README.md

ContentBundle

Introduction

This bundle provides basic CMS functionality with its own admin part. It didn't require any other bundles.

IMPORTANT This bundle is in development.

Features

  • Categories management (frontend + backend).
  • Content management (frontend + backend).
  • Bundle is translated, see Resources/translations.

Requirements

  • Symfony2 with twig.
  • Doctrine2, DoctrineExtension & DoctrineFixtures.
  • Highly recommended FOSUserBundle (please see the installation steps here).
  • Annotations for Controllers.
  • jQuery + twitter bootstrap js.
  • Twitter Bootstrap css file (or with the same styles).
  • It is recommended to use this bundle with SmirikAdminBundle which provides public assets (including twitter bootstrap & jquery) + menu + core classes.

Installation

  • Add bundle to your deps file:

    [SmirikContentBundle]
      git=git://github.com/smirik/SmirikContentBundle.git
      target=/bundles/Smirik/ContentBundle
    
  • Register the namespace in autoload.php (if you don't use other Smirik* bundles):

    $loader->registerNamespaces(array(
        ...
        'Smirik'           => __DIR__.'/../vendor/bundles',
    ));
    
  • Register bundle in your AppKernel.php:

    $bundles = array(
        ...
        new Smirik\ContentBundle\SmirikContentBundle(),
        ...
    );
    
  • Add routes to routing.yml:

    SmirikContentBundle:
        resource: "@SmirikContentBundle/Controller/"
        type:     annotation
        prefix:   /
    
  • Update database and load test fixtures to see admin functionality

    php app/console doctrine:schema:update --force
    php app/console doctrine:fixtures:load --append
    
  • See test content at http://host/admin/content/

  • Please check that bootstrap.css file is loaded.

  • Enjoy!

Database schema

License

Academic.

Something went wrong with that request. Please try again.