Browse Source

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

Sergio 13 years ago
parent
commit
89a28da45b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/CoreController.php

+ 1 - 1
Controller/CoreController.php

@@ -35,7 +35,7 @@ class CoreController extends Controller
      */
      */
     public function dashboardAction()
     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(),
             'groups'          => $this->get('sonata.admin.pool')->getDashboardGroups(),
             'base_template'   => $this->getBaseTemplate(),
             'base_template'   => $this->getBaseTemplate(),
             'admin_pool'      => $this->container->get('sonata.admin.pool')
             'admin_pool'      => $this->container->get('sonata.admin.pool')