Пример #1
0
 /**
  * Executes flagHelp action
  *
  */
 public function executeFlagHelp()
 {
     $this->forward404Unless($projectApplication = ProjectApplicationPeer::retrieveByUuid($this->getRequestParameter('id')), 'Project not found using id: [' . $this->getRequestParameter('id') . ']');
     if ($this->getRequest()->getMethod() == sfRequest::POST && $projectApplication->getOwnerId() == $this->getUser()->getId()) {
         $projectApplication->setFlaggedHelp(true);
         $projectApplication->save();
     }
     $this->project = $projectApplication;
 }