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