コード例 #1
0
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
 public function executeSend(sfWebRequest $request)
 {
     $form = new BugForm(null, array(), false);
     $form->bind($request['bug']);
     if (!$form->hasErrors()) {
         $form->save();
     }
     return sfView::NONE;
 }
コード例 #2
0
 public function executeSend(sfWebRequest $request)
 {
     $form = new BugForm();
     $form->bind($request['bug']);
     var_dump($form->getErrors());
     if (!$form->hasErrors()) {
         $form->save();
     }
     die;
 }