模板编译期间引发了异常
(“您必须将FOSCommentBundle添加到assetic.bundle配置中才能使用
{% javascripts %}
标记在
FOSCommentBundle:Thread:async.html.twig。”)
“ FOSCommentBundle:Thread:async.html.twig”。
这是我的Config.yml文件
fos_comment:
db_driver: orm
class:
model:
comment: Esprit\CommentBundle\MyBundle\Entity\Comment
thread: Esprit\CommentBundle\Entity\Thread
assetic:
bundles: [ FOSCommentBundle ]
fos_comment_api:
type: rest
resource: "@FOSCommentBundle/Resources/config/routing.yml"
prefix: /api
defaults: { _format: html }
最佳答案
在config.html中将FOSCommentBundle添加到Assetic配置中
assetic:
bundles: ["FOSCommentBundle"]