moo/flashcardadmin-bundle

Symfony bundle that provides admin classes that be used with SonataAdminBundle.

v1.0.2 2014-07-23 23:57 UTC

README

SensioLabsInsight Scrutinizer Code Quality

The FlashCardAdminBundle is a Symfony2 bundle that provides admin classes that be used with SonataAdminBundle.

Features

Version 1.0.0
  • 2 admin classes one for managing cards, and the other one for managing card categories.

License

This bundle is under the MIT license. View the LICENSE.md file for the full copyright and license information.

Installation (5 steps)

Assuming that you have SonataAdminBundle installed and configured.

1. Download FlashCardAdminBundle with composer.

Add the following to your composer.json:

{
    "require": {
        "moo/flashcardadmin-bundle": "*"
    }
}

Install the bundle by executing the following command:

$ php composer.phar update moo/flashcardadmin-bundle

2. Add the bundle configurations.

Open your application base configuration file app/config/config.yml and add the following to the imports section.

imports:
    # ....
    - { resource: "@MooFlashCardAdminBundle/Resources/config/admin.yml" }

3. Enable the bundle in your application kernel.

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Moo\FlashCardAdminBundle\MooFlashCardAdminBundle(),
    );
}

4. (optional) Install CRUD ACL rules for the Admin classes.

$ php app/console sonata:admin:setup-acl

You can read more about ACL in SonataAdmin (here).

5. Publish bundle assets for Development and Production environments.

$ php app/console assets:install web --symlink
$ php app/console assetic:dump

DONE!

  • You can access the homepage of the bundle from http://yoursite.com/app_dev.php/admin