Ejemplo n.º 1
0
 /**
  * Renders page with dashboard skeleton.
  *
  * @throws \Whoops\Example\Exception
  * @return array|void
  */
 public function dashboardAction()
 {
     $configName = $this->params()->fromRoute('configName');
     $dashboardManager = new DashboardManager($configName, $this->serviceLocator);
     $this->layout()->setVariable('widgetTypes', $dashboardManager->getWidgetTypes());
     $this->layout()->setVariable('theme', $dashboardManager->getThemeName());
     return new ViewModel(array('widgets' => $dashboardManager->getWidgets(), 'configName' => $configName));
 }