Php symfony2演示应用程序错误

Php symfony2演示应用程序错误,php,symfony,Php,Symfony,我安装了新的Symfony演示应用程序 当我浏览应用程序时,它会显示一个异常 An exception has been thrown during the rendering of a template ("Notice: Undefined offset: 1") in blog/index.html.twig at line 22. 500 Internal Server Error - Twig_Error_Runtime 1 linked Exception: ContextError

我安装了新的Symfony演示应用程序

当我浏览应用程序时,它会显示一个异常

An exception has been thrown during the rendering of a template ("Notice: Undefined offset: 1") in blog/index.html.twig at line 22.
500 Internal Server Error - Twig_Error_Runtime
1 linked Exception: ContextErrorException »
当我检查index.html.twig时,我发现了这行代码

{{ show_source_code(_self) }}

有人可以帮忙吗?

什么是“显示源代码”?自定义的树枝扩展?如果是,你能分享背后的代码吗?什么样的演示应用程序?你能提供你下载的链接吗?您是否正在浏览开发环境?使用新的symfony安装程序,只需在cmd中键入php symfony demo