Example #1
0
 /**
  * Instead if deleting a user account from the database, we simply disabled it.
  */
 protected function disableAction()
 {
     $this->userTable->toggleUserState((int) $this->getParam('id'), 1);
     $this->setLayoutMessages($this->translate('USER_DISABLE_SUCCESS'), 'success');
     return $this->redirect()->toUrl('/admin/user');
 }