首页 > 其他 > 详细

Render a controller in Twig - Unexpected “render” tag - expecting closing tag for the “block” tag defined

时间:2017-05-08 01:10:10      阅读:342      评论:0      收藏:0      [点我收藏+]

Render a controller in Twig - Unexpected “render” tag - expecting closing tag for the “block” tag defined

这样子写{% render(controller("MyBundle:Default:method", { ‘call‘ : ‘action‘ })) %}  

报错Unexpected "render" tag (expecting closing tag for the "block" tag defined

 

那么改为这样子:

{{ render(controller("MyBundle:Default:method", { ‘call‘ : ‘action‘ })) }}

 

Render a controller in Twig - Unexpected “render” tag - expecting closing tag for the “block” tag defined

原文:http://www.cnblogs.com/Amos-Turing/p/6823002.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!