public function deleteAction() { $id = $this->getRequest()->getParam('id'); if ($id === null) { $this->addErrorMessage('ID parameter is missing.'); return; } $model = new Default_Model_User(); $model->delete($id); $this->addMessage('User deleted'); $this->_redirect('/user'); }
public function deleteAction() { $id = $this->getRequest()->getParam('id'); if ($id === null) { $this->addErrorMessage($this->tr->_('ACTION_MISSING_ID')); return; } $model = new Default_Model_User(); $model->delete($id); $this->addMessage($this->tr->_('USER_DELETE')); $this->_redirect('/user'); }