public function actionDashboardDetails($id) { if (intval($id) > 0) { $dashboard = Dashboard::getById(intval($id)); $layoutId = $dashboard->layoutId; } else { $dashboard = Dashboard::getByLayoutIdAndUser(Dashboard::DEFAULT_USER_LAYOUT_ID, Yii::app()->user->userModel); $layoutId = $dashboard->layoutId; } $params = array('controllerId' => $this->getId(), 'moduleId' => $this->getModule()->getId()); ControllerSecurityUtil::resolveAccessCanCurrentUserReadModel($dashboard); Portlet::resolvePortletCollectionColumnIndexes($layoutId); $homeTitleBarAndDashboardView = new HomeTitleBarAndDashboardView($this->getId(), $this->getModule()->getId(), 'HomeDashboard' . $layoutId, $dashboard, $params); $view = new HomePageView(ZurmoDefaultViewUtil::makeStandardViewForCurrentUser($this, $homeTitleBarAndDashboardView)); echo $view->render(); }