load->model('codex/bundesland_model', 'BundeslandModel'); // Load set the uid of the model to let to check the permissions $this->BundeslandModel->setUID($this->_getUID()); } public function getAll() { $result = $this->BundeslandModel->loadWhole(); $this->response($result, REST_Controller::HTTP_OK); } }