Fertig noch nicht getestet

This commit is contained in:
2023-12-06 08:53:48 +01:00
parent 782311304e
commit ef45413bee
2 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
//Programmiert von: Max Heer, Getestet von:
namespace kindergartenverwaltung\Controller;
use kindergartenverwaltung\Libary\Msg;
use kindergartenverwaltung\Model\EnthaeltModel;
class EnthaeltController(){
public function getInhaltsstoffe($gerichtId){
$result=$this->db->getEnthaelt($gerichtId);
return json_encode($result);
}
public function insertEnthaelt($data){
$result=$this->db->insertEnthaelt($data);
return json_encode($result);
}
}
?>