我創建了自定義控制器(擴展了Sonata \ AdminBundle \ Controller \ CRUDController)和操作。無法在SonataAdminBundle模板中使用渲染器(控制器)
當呈現這個動作{{render(controller('MainBundle:SonataAdmin/Order:searchCertificate'))}}
我得到Symfony的錯誤:
An exception has been thrown during the rendering of a template ("There is no
_sonata_admin
defined for the controllerMainBundle\Controller\SonataAdmin\OrderController
and the current route").