fredb/admin-bundle

Create Back-office by annotations in Entities

Installs: 19

Dependents: 0

Stars: 2

Watchers: 1

Forks: 3

Open Issues: 1

Language: JavaScript

0.1 2013-06-06 18:28 UTC

README

Create Back-office by annotations in Entities (PHP/Symfony2)

Create Back-office only with annotations in your Entities.

For PHP / Symfony2

Have a look to this bundle on Youtube : http://www.youtube.com/channel/UCnIexKoNgMwnaUHsLzYuzYQ

Features:

  • Doctrine ORM support,
  • multi-language for your Front-office,(not only for Back-office)
  • Linking your Entities,
  • Adding picture,
  • generate url key,
  • Color, date, rich text...

For exemple if you have two entities:

  • Product,

  • Designer,

If you want to create on product page a list of designers that should be linked to product, put into Product Entity:

/** @Fredb\AdminBundle\Annotations\ConcretAnnotations\Property\Liste(user_name={"fr":"lier entity test","en":"link entity test"},class_item_linked="Acme\DemoBundle\Entity\Designer" ) */
protected $link_test;  

And you will have "Designer" box in your admin(just like Designer box on third picture below)

Images:

login

list

item

Installation:

0 - Install symfony 2. Version >= 2.2.0

1 - Adding "fredb/admin-bundle": "dev-master" in require section of your "composer.json"

2 - php composer.phar update

3 - Adding AdminBundle to your Kernel : in "/app/AppKernel.php" add this line to $bundles array:

new Fredb\AdminBundle\FredbAdminBundle(),

4 - import AdminBundle Route: in "/app/config/routing.yml" add

 _admin:
      resource: "@FredbAdminBundle/Resources/config/routing.yml"
      prefix:   /

5 - import security context: in " /app/config/security.yml" put

 imports:
    - { resource: '@FredbAdminBundle/Resources/config/security.yml' }


 security:
    providers:
        in_memory:
            memory:  
                users:
                    user: { password: mode, roles: 'ROLE_ADMIN' }

6 - import asset: in " /app/config/config.yml" add

assetic:
    bundles:        ['FredbAdminBundle']

execute : php app/console assets:install web/ --symlink

7 - create table require for linking Entity/pictures...

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

You can now create your own Entity.

Have a look to 'Fredb/AdminBundle/annotation/ConcretAnnotations' folder to find what you need to create Back-office. You can find sample in 'Fredb/AdminBundle/Dummy/Entity'. Wiki is coming soon.

Contact: Frédéric Bourbigot

frederic.bourbigot@laposte.net