blogger\u blog.comments.latest\u comment\u Symfony 2中的限制错误

blogger\u blog.comments.latest\u comment\u Symfony 2中的限制错误,symfony,twig,Symfony,Twig,在试用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_bl

在试用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

确保在apps/config中的config.yml中包含“-{resource:@bloggerbogbundle/Resources/config/config.yml}”。这应该可以解决问题。

错误应该在细枝模板中给出一个行号,您是否也可以提供该部分代码?