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
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-16