public function updateAction() { if ($this->getRequest()->isPost()) { $this->userService->SaveUser($this->_getParam('id'), $this->_getParam('name'), $this->_getParam('email')); $this->_redirect('index'); } else { $this->view->user = $this->userService->GetUser($this->_getParam('id'))->current(); } }