/** * List Project Activities * @param sfWebRequest $request * @return unknown_type */ public function executeListProjectActivity(sfWebRequest $request) { $projectService = new ProjectService(); $this->listProject = $projectService->getProjectList(); $currentProjectId = isset($_POST['id']) ? $_POST['id'] : $request->getParameter('id'); $this->currentProject = $currentProjectId; $projectActivityList = $projectService->getProjectActivityById($currentProjectId); if (count($projectActivityList) > 0) { $this->projectActivityList = $projectActivityList; $this->hasProjectActivity = true; } else { $this->hasProjectActivity = false; } }