Fertig M4

This commit is contained in:
Robert
2023-12-08 18:42:04 +01:00
parent 070945c4a5
commit 96079ebc6d
14 changed files with 424 additions and 56 deletions

View File

@@ -0,0 +1,21 @@
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/../models/gerichte_main.php');
class MainController
{
public function index() {
/*
Wenn Sie hier landen:
bearbeiten Sie diese Action,
so dass Sie die Aufgabe löst
*/
$data = db_gericht_select_karte();
return view('main.index', [
'data'=>$data,
'url' => 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"
]);
}
}