'basis/bankverbindung:rw')); // Load model BankverbindungModel $this->load->model('person/bankverbindung_model', 'BankverbindungModel'); } /** * @return void */ public function getBankverbindung() { $bankverbindungID = $this->get('bankverbindung_id'); if (isset($bankverbindungID)) { $result = $this->BankverbindungModel->load($bankverbindungID); $this->response($result, REST_Controller::HTTP_OK); } else { $this->response(); } } /** * @return void */ public function postBankverbindung() { if ($this->_validate($this->post())) { if (isset($this->post()['bankverbindung_id'])) { $result = $this->BankverbindungModel->update($this->post()['bankverbindung_id'], $this->post()); } else { $result = $this->BankverbindungModel->insert($this->post()); } $this->response($result, REST_Controller::HTTP_OK); } else { $this->response(); } } private function _validate($bankverbindung = NULL) { return true; } }