소스 검색

Update Controller/CoreController.php
-> added custom dashboard template option get

Sergio 13 년 전
부모
커밋
89a28da45b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Controller/CoreController.php

+ 1 - 1
Controller/CoreController.php

@@ -35,7 +35,7 @@ class CoreController extends Controller
      */
     public function dashboardAction()
     {
-        return $this->render('SonataAdminBundle:Core:dashboard.html.twig', array(
+        return $this->render($this->container->get('sonata.admin.pool')->getTemplate('dashboard'), array(
             'groups'          => $this->get('sonata.admin.pool')->getDashboardGroups(),
             'base_template'   => $this->getBaseTemplate(),
             'admin_pool'      => $this->container->get('sonata.admin.pool')