I'm working on a custom controller/function in symphony2/sonata admin panel. I want to render the file using:
return $this->render('SonataAdminBundle:CRUD:base_list.html.twig', array('entities' => $entities));
I get the error
Variable "form" does not exist in SonataAdminBundle:CRUD:base_list.html.twig
Hers the line in the twig:
<td class="filter-type">{{ form_widget(form.getChild(filter.formName).getChild('type')) }}</td>
Thanks.