私はカスタムコントローラ(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").