function dashboard() { $this->User->recursive = 0; $this->set('users', $this->paginate()); $sprints = $this->Sprint->getCurrentSprint(); $this->set('sprints', $sprints); $tasks = $this->Task->getUserTask($this->Auth->user('id'), false); $this->set('tasks', $tasks); $this->set('project', $this->Project->read(null, 1)); $this->set('information', $this->Information->getLatestInformation()); $this->set('show_link', true); $all_sprints = $this->Sprint->getAllSprints(); $this->Sprint->makeSprintZero($all_sprints); $stories = $this->Story->getActiveStory(); $all_sprints = $this->PmsCommon->getEachStoryPoints($all_sprints, $stories); $this->set("all_sprints", $all_sprints); }