Javascript 当我将FOSComment添加到模板时,如何修复它?

Javascript 当我将FOSComment添加到模板时,如何修复它?,javascript,symfony,foscommentbundle,Javascript,Symfony,Foscommentbundle,编译模板期间引发了异常 (“必须将FOSCommentBundle添加到assetic.bundle配置中才能使用 中的{%javascripts%}标记 FOSCommentBundle:Thread:async.html.twig。“)位于 “FOSCommentBundle:Thread:async.html.twig” 这是我的Config.yml文件 fos_comment: db_driver: orm class: model:

编译模板期间引发了异常 (“必须将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 } 

FOSCommentBundle添加到config.html中的资产配置中

assetic:
    bundles:        ["FOSCommentBundle"]

FOSCommentBundle添加到config.html中的资产配置中

assetic:
    bundles:        ["FOSCommentBundle"]

尝试删除缓存
php应用程序/控制台assetic:dump
仍然存在相同的问题尝试删除缓存
php应用程序/控制台assetic:dump
仍然存在相同的问题