symfony 2 sonataAdminBundle override template
问题 how can we override sonata bundle layout for a single Admin class like i have created 3 Admin Class userAdmin, productAdmin, ticketAdmin now i want to override ticketAdmin edit action and edit template and add some extra code there. 回答1: If you don't want to create an extra controller you can use this method mentioned in the docs: Admin's documentation - Reference - Templates (master) - 20.6. Configuring templates services: sonata.admin.post: class: Acme\DemoBundle\Admin\PostAdmin tags: - {