Exemplo n.º 1
0
 public function editAction()
 {
     parent::editAction();
     if ($this->getRequest()->isPost()) {
         try {
             $data = (object) $this->getRequest()->getPost();
             /* @var stdClass $data */
             $this->_setData($data);
             $this->_entity->save();
             $this->__goBack();
         } catch (Exception $e) {
             $this->view->showMessage($e);
         }
     } else {
         $_POST['passwd'] = '';
         $_POST['email'] = $this->_entity->getEmail();
         $_POST['id_avatar'] = $this->_entity->getIdAvatar();
         $_POST['phone'] = $this->_entity->getPhone()->getPhoneNumber();
         $_POST['user_name'] = $this->_entity->getName();
         $_POST['last_name'] = $this->_entity->getLastname();
     }
 }
Exemplo n.º 2
0
 public function sendToUser()
 {
     $this->send($this->_user->getEmail());
 }
Exemplo n.º 3
0
 public function sendToUser()
 {
     $this->send($this->_profile->getEmail());
 }