【发布时间】:2016-06-24 10:52:57
【问题描述】:
我正在开发 symphony2/sonata 管理面板中的自定义控制器/功能。我想使用以下方式渲染文件:
return $this->render('SonataAdminBundle:CRUD:base_list.html.twig', array('entities' => $entities));
我得到了错误
Variable "form" does not exist in SonataAdminBundle:CRUD:base_list.html.twig
她的树枝上的线:
<td class="filter-type">{{ form_widget(form.getChild(filter.formName).getChild('type')) }}</td>
谢谢。
【问题讨论】: