コード例 #1
0
 public function formSucceeded(Form $form, $values)
 {
     $photo = new Model\Photo($this->database);
     $error = $photo->uploadProfileImage($values->img, $this->id);
     if ($error) {
         $form->addError($error);
     }
     if ($form->getPresenter()->isAjax()) {
         $form->getPresenter()->redrawControl('profileImage');
     }
 }