SHARE
TWEET

Untitled

a guest Aug 12th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. le component :
  2.  
  3. <?php include_component("user", "editAddress", array('user_id' => $user_id, 'addressForm' => $registerAdressForm)); ?>
  4.  
  5.  
  6. l'action
  7.  
  8.  
  9.  if ($request->isMethod('post'))
  10.     {
  11.  
  12.      
  13.       $this->form->bind($request->getParameter('address'));
  14.  
  15.       if ($this->form->isValid())
  16.       {
  17.         $adresse = $this->form->save();
  18.  
  19.         $adresse->setuser_id($this->getUser()->getGuardUser()->getId());
  20.         $adresse->save();
  21.  
  22.         $this->redirect("memberSpace/index");
  23.       }
  24.     }
RAW Paste Data
Top