Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. ID NAME PHONE
  2.  
  3. 1 Steave 33333333
  4. 2 Joe 77777
  5.  
  6. 1 Steave 33333333
  7. 2 Joe 77777
  8.  
  9. - DO THIS
  10.  
  11. $model = $this->userFactory->create();
  12.  
  13. $id = $this->getRequest()->getParam('user_id');
  14. if ($id) {
  15. try {
  16. $model = $this->sliderRepository->getById($id);
  17. } catch (LocalizedException $e) {
  18. $this->messageManager->addErrorMessage(__('This slider no longer exists.'));
  19. return $resultRedirect->setPath('*/*/');
  20. }
  21. }
  22. $model->setData($data);
  23. $this->sliderRepository->save($model);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement