在尝试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
答案 0 :(得分:1)
确保您在apps / config中的config.yml中包含“ - {resource:@ BloggerBlogBundle / Resources / config / config.yml}”。这应该可以解决问题。