show total amount of orders on the top of a sonata admin list
问题 After filtering for a particular criteria, display total of the sales transaction amounts on top of the page. This should be total of all the pages if pages are more than one. Can someone guide me how to do this 回答1: We did it in the following manner and it is working like a charm Step 1 : Added two methods in orderAdmin public function getTemplate($name) { if($name == 'list') { return 'AppBundle:OrderAdmin:list.html.twig'; } return parent::getTemplate($name); stub } public function getSumOf(