博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
FOSCommentBundle功能包:导入FOSCommentBundle路由
阅读量:7069 次
发布时间:2019-06-28

本文共 680 字,大约阅读时间需要 2 分钟。

  • 原文出处:

  • 原文作者:

  • 授权许可:

  • 翻译人员:FireHare

  • 校对人员:

  • 适用版本:FOSCommentBundle 2.0.5

  • 文章状态:草译阶段

Step 3: Import FOSCommentBundle routing

Import the bundle routing:

导入功能包路由:

fos_comment_api:    type: rest    resource: "@FOSCommentBundle/Resources/config/routing.yml"    prefix: /api    defaults: { _format: html }

Note:

注意:

The type: rest part is important.

type: rest部分是重要的。

Note:

注意:

The defaults configuration may not be necessary unless you have changed FOSRestBundle's default format.

defaults 配置项也许没必要,除非您已经改变了 FOSRestBundle 的缺省格式。

Continue to the next step! (final!)(继续最后一步)

When you're done. Continue with the final step: enabling the comments on a page:

当您已经完成,继续最后一步:在页面中启用评论:

.

第4步:在页面中启用评论。

转载地址:http://ulqll.baihongyu.com/

你可能感兴趣的文章
mysql性能优化配置
查看>>
JavaScript继承方式详解
查看>>
解决win7旗舰版无法打开微软论坛
查看>>
烂泥:高负载均衡学习haproxy之安装与配置
查看>>
Web.config配置文件详解(新手必看)<转>
查看>>
【转】shell编程:数学运算
查看>>
ASP.NET
查看>>
使用mosh取代ssh提高n2n网络连接稳定性
查看>>
Introduction - 介绍
查看>>
C++之萃取技术(traits)
查看>>
13、ArrayBlocking
查看>>
windows强行删除无法删出文件或文件夹的方法
查看>>
毕业生的摸爬滚打——劳务协议和劳务报酬的计算
查看>>
Java课程作业01
查看>>
#HTTP协议学习# (十)拓展-HTTPS协议
查看>>
电梯调度 最终版
查看>>
mysql索引详解(转)
查看>>
php html 静态化 缓存
查看>>
测试架构师修炼之道:“秘书九段”的故事 - 延伸至测试六段
查看>>
Silverlight数据验证
查看>>