Example #1
0
 public function deleteclientAction()
 {
     $request = $this->getRequest();
     $id = $this->_helper->IdConvert->hexToStr($request->getParam('id'));
     if (empty($id)) {
         $this->_helper->messenger->error('Nie podano parametru ID');
         return null;
     }
     try {
         $model = new WsClientHasWsSaveip();
         $model->delete($id);
         $this->_helper->messenger->success();
         $this->_helper->redirector('index');
         return;
     } catch (Logic_Ws_Exception $e) {
         $this->_helper->messenger->error($e->getMessage());
         $this->_helper->redirector('index');
     }
 }