public function executeSendMail(sfWebRequest $request) { $this->forward404Unless($application_temp = ApplicationTempPeer::retrieveByPk($request->getParameter('id')), sprintf('Object application_temp does not exist (%s).', $request->getParameter('id'))); $to = $request->getParameter('to'); $email = $request->getParameter('email'); $subject = $request->getParameter('subject'); $text = $request->getParameter('body'); $this->getComponent('mail', 'missionReqReject', array('text' => $text, 'email' => $email, 'subject' => $subject)); $application_temp->delete(); $this->getUser()->setFlash('success', 'Email have successfully queued!'); $this->redirect($request->getReferer()); }
public function executeProcessStep3(sfWebRequest $request) { //echo $request->getParameter('step3_redirect');die(); slot('nav_menu', array('members', 'pending-application')); $this->application_temp = ApplicationTempPeer::retrieveByPk($request->getParameter('id')); $this->forward404Unless($this->application_temp); $this->person = PersonPeer::retrieveByPK($this->application_temp->getPersonId()); if ($request->isMethod('post')) { $this->processStep3Check($request); } $this->form1 = new ApplicationTempProcessStep1Form($this->application_temp); $this->form2 = new ApplicationTempProcessStep2Form($this->application_temp); $this->setTemplate('processSteps'); }