定制 fredb/admin-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fredb/admin-bundle

Composer 安装命令:

composer require fredb/admin-bundle

包简介

Create Back-office by annotations in Entities

README 文档

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

统计信息

  • 总下载量: 34
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 5
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-05-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固