1

在“ FOSCommentBundle {% javascripts %}:Thread:async.html.枝条”。

这是我的 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 } 
4

1 回答 1

0

在 config.html中将FOSCommentBundle添加到Assetic 配置中

assetic:
    bundles:        ["FOSCommentBundle"]
于 2015-11-30T05:47:04.773 回答