承接 twin-elements/admin-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

twin-elements/admin-bundle

最新稳定版本:v1.11.6

Composer 安装命令:

composer require twin-elements/admin-bundle

包简介

Admin bundle for CMS

README 文档

README

##Installation composer require twin-elements/admin-bundle

in /config/packages/routes.yaml add

admin_dashboard:
    path: /admin/
    controller: TwinElements\AdminBundle\Controller\DashboardController::index
    methods: GET
    options: { i18n: false }
    
admin_core:
    resource: "@TwinElementsAdminBundle/Controller/"
    type: annotation
    prefix: /admin
    requirements:
        _locale: '%app_locales%'
    defaults:
        _locale: '%locale%'
        _admin_locale: '%admin_locale%'
    options: { i18n: false }

in /config/packages/security.yaml add

imports:
    - { resource: '@TwinElementsAdminBundle/Resources/config/security.yaml' }

in /config/packages/twin_elements_admin.yaml add

imports:
  - { resource: "@TwinElementsAdminBundle/config/config.yaml" }

twin_elements_admin: ~

How create a new Roles?

1.Create class implements TwinElements\AdminBundle\Role\RoleGroupInterface

2.Register class in services.yaml

<service id="YOUR_CLASS">
    <tag name="twin_elements.role" priority="2-999"/>
</service>

3.Roles automatically implemented to roles list type 4.Add to messages.LANG.yaml translations as

role:
    role_name: Role name

How create a new AdminMenu items

1.Create class implements TwinElements\AdminBundle\Menu\AdminMenuInterface

2.Register class in services.yaml

<service id="YOUR_CLASS">
    <tag name="twin_elements.admin_menu"/>
</service>

3.Done

Creating a new super admin user

In the command line entre the command:

php bin/console te:admin:create_super_admin

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-17