From f96a2cac052beb8bee29b8c046dba6892d0977ed Mon Sep 17 00:00:00 2001 From: William Date: Mon, 14 Mar 2022 14:21:35 +0100 Subject: [PATCH] Remove example --- app/model/Example.php | 18 ------------------ app/view/pages/example.php | 3 --- app/view/template/header.php | 1 - public/example.php | 19 ------------------- 4 files changed, 41 deletions(-) delete mode 100644 app/model/Example.php delete mode 100644 app/view/pages/example.php delete mode 100644 public/example.php diff --git a/app/model/Example.php b/app/model/Example.php deleted file mode 100644 index afac80c..0000000 --- a/app/model/Example.php +++ /dev/null @@ -1,18 +0,0 @@ -database = $database; - } - - public function returnGivenString(string $string): string - { - return $string; - } -} \ No newline at end of file diff --git a/app/view/pages/example.php b/app/view/pages/example.php deleted file mode 100644 index 8e198eb..0000000 --- a/app/view/pages/example.php +++ /dev/null @@ -1,3 +0,0 @@ -

Eksempel side

-

Dette er en eksempel side

-

\ No newline at end of file diff --git a/app/view/template/header.php b/app/view/template/header.php index 251f607..0fb4ab0 100644 --- a/app/view/template/header.php +++ b/app/view/template/header.php @@ -38,7 +38,6 @@

Felles

user->loggedIn): ?> diff --git a/public/example.php b/public/example.php deleted file mode 100644 index b2249b0..0000000 --- a/public/example.php +++ /dev/null @@ -1,19 +0,0 @@ -session->flash('Eksempel', 'info'); -$app->session->flash('Eksempel', 'success'); -$app->session->flash('Eksempel', 'warning'); -$app->session->flash('Eksempel', 'danger'); - -// Grab model and perform task -$model = $app->model('Example'); -$message = $model->returnGivenString('Hei på deg!!'); - -// Render the view with prepared data -$app->view('template/header', ['title' => 'Eksempel side']); -$app->view('pages/example', [ - 'message' => $message -]); -$app->view('template/footer'); \ No newline at end of file