我刚刚安装了SonataNewsBundle。我在尝试去的时候遇到了这个异常_http://localhost/news:
The filter "format_date" does not exist. Did you mean "format_file" in SonataNewsBundle:Post:archive.html.twig at line 20
问题是我做错了什么?
我在archive.html.twig、view.html.twig、comment.html.twig中将format_date
更改为date
,它的工作原理是