fredb / admin-bundle
Create Back-office by annotations in Entities
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 5
Open Issues: 1
Language:JavaScript
Type:symfony-bundle
Requires
- php: >=5.3.3
- doctrine/doctrine-bundle: 1.2.*
- doctrine/orm: ~2.2,>=2.2.3
- jms/di-extra-bundle: 1.3.*
- jms/security-extra-bundle: 1.4.*
- sensio/distribution-bundle: 2.2.*
- sensio/framework-extra-bundle: 2.2.*
- sensio/generator-bundle: 2.2.*
- symfony/assetic-bundle: 2.1.*
- symfony/monolog-bundle: 2.2.*
- symfony/swiftmailer-bundle: 2.2.*
- symfony/symfony: 2.2.*
- twig/extensions: 1.0.*
- zendframework/zendframework1: 1.12.3
This package is not auto-updated.
Last update: 2024-12-16 15:13:14 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:
Installation:
0 - Install symfony 2. Version >= 2.2.0
- 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"
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