public function actionDashboardDetails() { $params = array('controllerId' => $this->getId(), 'moduleId' => $this->getModule()->getId()); $gridViewId = 'notUsed'; $pageVar = 'notUsed'; $introView = new MarketingDashboardIntroView(get_class($this->getModule())); $actionBarView = new SecuredActionBarForMarketingSearchAndListView('default', 'marketing', new EmailTemplate(), $gridViewId, $pageVar, false, 'MarketingDashboardLink', $introView); $marketingDashboardView = new MarketingDashboardView($this->getId(), $this->getModule()->getId(), 'MarketingDashboard', $params); $marketingDashboardView->setCssClasses(array('clearfix')); $gridView = new GridView(2, 1); $gridView->setView($actionBarView, 0, 0); $gridView->setView($marketingDashboardView, 1, 0); $breadcrumbLinks = static::getDashboardBreadcrumbLinks(); $view = new MarketingPageView(MarketingDefaultViewUtil::makeViewWithBreadcrumbsForCurrentUser($this, $gridView, $breadcrumbLinks, 'MarketingBreadCrumbView')); echo $view->render(); }
public function actionDashboardDetails() { $params = array('controllerId' => $this->getId(), 'moduleId' => $this->getModule()->getId()); $gridViewId = 'notUsed'; $pageVar = 'notUsed'; $introCookieValue = Yii::app()->request->cookies[MarketingDashboardIntroView::resolveCookieId()]; $actionBarView = new SecuredActionBarForMarketingSearchAndListView('default', 'marketing', new EmailTemplate(), $gridViewId, $pageVar, false, 'MarketingDashboardLink'); $actionBarView->setIntroCookieValue($introCookieValue); $introView = new MarketingDashboardIntroView($introCookieValue); $marketingDashboardView = new MarketingDashboardView($this->getId(), $this->getModule()->getId(), 'MarketingDashboard', $params); $marketingDashboardView->setCssClasses(array('clearfix')); //todo: don't show introView if hidden $gridView = new GridView(3, 1); $gridView->setView($actionBarView, 0, 0); $gridView->setView($introView, 1, 0); $gridView->setView($marketingDashboardView, 2, 0); $breadcrumbLinks = static::getDashboardBreadcrumbLinks(); $view = new MarketingPageView(MarketingDefaultViewUtil::makeViewWithBreadcrumbsForCurrentUser($this, $gridView, $breadcrumbLinks, 'MarketingBreadCrumbView')); echo $view->render(); }