db = new EnthaeltModel(); } public function getEnthaelt($gerichtId) { $result = $this->db->getEnthaelt($gerichtId); return json_encode($result); } public function writeEnthaelt($data) { $result = $this->db->insertEnthaelt($data); return json_encode($result); } } ?>