Guest User

Untitled

a guest
Dec 15th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. if ($form->isValid($form->getValues())) {
  2. /* Uploading Document File on Server */
  3. $upload = new Zend_File_Transfer_Adapter_Http();
  4. $upload->setDestination("/public_html/public/uploads/");
  5. //echo $upload->getDestination();
  6. try {
  7. // upload received file(s)
  8. $upload->receive();
  9. } catch (Zend_File_Transfer_Exception $e) {
  10. $e->getMessage();
  11. }
  12.  
  13.  
  14. $mm->update($dados_act," id = '$id' ");
  15. } else {
  16. $form->populate($formData);
  17. }
Add Comment
Please, Sign In to add comment