/** * Executes createSaveTimeline action * */ public function executeCreateSaveTimeline() { if ($this->getRequest()->getMethod() == sfRequest::POST) { $projectApplication = ProjectApplicationPeer::retrieveByUuid($this->getRequestParameter('id')); if ($projectApplication == null) { $this->forward404('Project not found using uuid: [' . $this->getRequestParameter('id') . ']'); } //todo: add tag support $projectApplication->setPreferredTermLength($this->getRequestParameter('preferred_term_length')); $projectApplication->setLength($this->getRequestParameter('length')); $projectApplication->setPage3Complete(true); $projectApplication->save(); $projectApplication = ProjectApplicationPeer::retrieveByPk($projectApplication->getId()); $this->setFlash('id', $projectApplication->getUuid()); $this->redirect('@create_project_submit?id=' . $projectApplication->getUuid()); } $this->forward404('not a post request, something is strange'); }
/** * Executes zebSandbox action * */ public function executeZebSandbox() { $this->forward404Unless($this->project_app = ProjectApplicationPeer::retrieveByPk('26')); $this->user = sfGuardUserPeer::retrieveByUsername('*****@*****.**'); }