'basis/nation:r', 'All' => 'basis/nation:r')); // Load model NationModel $this->load->model('codex/Nation_model', 'NationModel'); } public function getNation() { $nation_code = $this->get("nation_code"); if (isset($nation_code)) { $result = $this->NationModel->loadWhere(array('nation_code' => $nation_code)); $this->response($result, REST_Controller::HTTP_OK); } else { $this->response(); } } public function getAll() { if (!$this->get('orderEnglish')) { $result = $this->NationModel->addOrder('kurztext'); } else { $result = $this->NationModel->addOrder('engltext'); } if (isSuccess($result)) { if ($this->get('ohnesperre')) { $result = $this->NationModel->loadWhere('sperre IS NULL'); } else { $result = $this->NationModel->load(); } } $this->response($result, REST_Controller::HTTP_OK); } }