2

在尝试 Symfony2 博客教程时,我收到此错误:

An exception has been thrown during the rendering of a template ("The parameter "blogger_blog.comments.latest_comment_limit" must be defined.")

即使它被定义config.yml

parameters:
    # Blogger max latest comments
    blogger_blog.comments.latest_comment_limit: 10
4

1 回答 1

1

确保您的 app/config 中的 config.yml 中包含“ - { resource: @BloggerBlogBu​​ndle/Resources/config/config.yml }”。这应该可以解决问题。

于 2014-02-19T03:07:17.580 回答