定制 xlabs/forumbundle 二次开发

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

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

xlabs/forumbundle

Composer 安装命令:

composer require xlabs/forumbundle

包简介

Forum management bundle

README 文档

README

A forum bundle.

Installation

Install through composer:

php -d memory_limit=-1 composer.phar require xlabs/forumbundle

This bundle depends on "xlabs/forumbundle". Make sure to set it up too.

In your AppKernel

public function registerbundles()
{
    return [
    	...
    	...
    	new XLabs\ForumBundle\XLabsForumBundle(),
    ];
}

Requirements

# app/config.yml

doctrine:
    ...
    orm:
        ...
        resolve_target_entities:
            ...
            XLabs\ForumBundle\Model\UserInterface: YourBundle\Entity\YourFOSUserExtendedEntity

assetic:
    ...
    bundles: [ ..., 'XLabsForumBundle']
    ...
php bin/console doctrine:schema:update --force
php bin/console fos:js-routing:dump && php bin/console assetic:dump && php bin/console assetic:dump --env=prod

Routing

Append to main routing file:

# app/config/routing.yml
  
x_labs_forum:
    resource: .
    type: xlabs_forum_routing

Configuration sample

Default values are shown below:

# app/config/config.yml
  
x_labs_forum:
    url_prefix: ''
    forum_admin_index: '/admin/index'
    forum_index: '/index'
    topic_index: '/topic'
    thread_index: '/thread'
    user_entity: My/FOSUser/Entity
    admin_user: 'myadminuser' # the one to create items from the admin
    use_emojis: true
    uploads:
        folder: media/forum
        allowed_extensions: ['jpg', 'jpeg', 'gif', 'png']
        max_file_size: 1048576

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固