From 550a64f57ef55326f6093dbdcc804fa7eb93d53a Mon Sep 17 00:00:00 2001 From: William Date: Wed, 19 Jan 2022 19:50:54 +0100 Subject: [PATCH] Commit --- app/core/ApiController.php | 7 ------- app/core/{Controller.php => App.php} | 8 +++++++- app/core/Flash.php | 9 --------- app/inc.php | 6 ++---- app/view/index.php | 6 +----- app/view/login.php | 6 +----- app/view/template/header.php | 10 +++++----- public/index.php | 21 +++++++-------------- public/login.php | 10 ++++------ 9 files changed, 27 insertions(+), 56 deletions(-) delete mode 100644 app/core/ApiController.php rename app/core/{Controller.php => App.php} (76%) delete mode 100644 app/core/Flash.php diff --git a/app/core/ApiController.php b/app/core/ApiController.php deleted file mode 100644 index f96aebb..0000000 --- a/app/core/ApiController.php +++ /dev/null @@ -1,7 +0,0 @@ -config = $config; + } + public function model(string $model): object { // Require model file diff --git a/app/core/Flash.php b/app/core/Flash.php deleted file mode 100644 index 81ab7dd..0000000 --- a/app/core/Flash.php +++ /dev/null @@ -1,9 +0,0 @@ -view('template/header', ['title' => $title]); ?> -

Velkommen til forsida!

Ting fungerer noen ganger.

-

- -view('template/footer'); ?> \ No newline at end of file +

\ No newline at end of file diff --git a/app/view/login.php b/app/view/login.php index 82db8cb..9a7f1ea 100644 --- a/app/view/login.php +++ b/app/view/login.php @@ -1,5 +1,3 @@ -view('template/header', ['title' => $title]); ?> -

Logg inn

Fyll inn påloggingsinformasjonen din.

@@ -13,6 +11,4 @@

-
- -view('template/footer'); ?> \ No newline at end of file + \ No newline at end of file diff --git a/app/view/template/header.php b/app/view/template/header.php index 978348f..1bc287b 100644 --- a/app/view/template/header.php +++ b/app/view/template/header.php @@ -6,7 +6,7 @@ <?=htmlspecialchars($title);?> – Stafett for livet - +