public function manage() { Piwik::checkUserHasAdminAccess($this->idSite); $view = new View('@Goals/manageGoals'); $this->setGeneralVariablesView($view); $this->setEditGoalsViewVariables($view); $this->setGoalOptions($view); return $view->render(); }