2017 © Pedro PelĂĄez
 

symfony-bundle admin-bundle

Create Back-office by annotations in Entities

image

fredb/admin-bundle

Create Back-office by annotations in Entities

  • Wednesday, July 31, 2013
  • by freding
  • Repository
  • 1 Watchers
  • 4 Stars
  • 24 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

AdminBundle

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

Create Back-office only with annotations in your Entities.

For PHP / Symfony2, (*2)

Have a look to this bundle on Youtube : http://www.youtube.com/channel/UCnIexKoNgMwnaUHsLzYuzYQ, (*3)

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:, (*4)

  • Product,, (*5)

  • Designer,, (*6)

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

/** @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), (*8)

Images:

login, (*9)

list, (*10)

item, (*11)

Installation:

0 - Install symfony 2. Version >= 2.2.0, (*12)

  • curl -s https://getcomposer.org/installer | php
  • php composer.phar create-project symfony/framework-standard-edition ./folder 2.2.4
  • configure sql connexion

1 - Adding "fredb/admin-bundle": "dev-master" in require section of your "composer.json", (*13)

2 - php composer.phar update, (*14)

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

new Fredb\AdminBundle\FredbAdminBundle(),, (*16)

4 - import AdminBundle Route: in "/app/config/routing.yml" add, (*17)

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

5 - import security context: in " /app/config/security.yml" put, (*18)

 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, (*19)

assetic:
    bundles:        ['FredbAdminBundle']

execute : php app/console assets:install web/ --symlink, (*20)

7 - create table require for linking Entity/pictures..., (*21)

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

You can now create your own Entity., (*22)

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., (*23)

Contact: Frédéric Bourbigot, (*24)

frederic.bourbigot@laposte.net, (*25)

The Versions