码迷,mamicode.com
首页 > 其他好文 > 详细

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

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

标签:lin   ted   stack   action   hyper   method   overflow   cte   undle   

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

标签:lin   ted   stack   action   hyper   method   overflow   cte   undle   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!