예제 #1
0
 public function executeRefer(sfWebRequest $request)
 {
     $this->mission_req = MissionRequestPeer::retrieveByPK($request->getParameter('id'));
     $this->forward404Unless($this->mission_req);
     $email = $request->getParameter('email');
     $subject = $request->getParameter('subject');
     $text = $request->getParameter('body');
     if ($request->getParameter('send_mail')) {
         $this->getComponent('mail', 'missionReqReject', array('text' => $text, 'email' => $email, 'subject' => $subject));
         return $this->setTemplate('close');
     }
     $this->setLayout(false);
 }