Fat commit

This commit is contained in:
William 2022-02-08 22:59:47 +01:00
parent 5098ed51cb
commit fd2e8d48df
15 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
// TODO: ... // TODO: ... this should validate the config and stuffs
class Config class Config
{ {
public array $config; public array $config;

View File

@ -7,5 +7,5 @@ if (!$app->user->loggedIn)
} }
$app->view('template/header', ["title" => "Bekreft avlogging"]); $app->view('template/header', ["title" => "Bekreft avlogging"]);
$app->view('confirm-logout'); $app->view('pages/confirm-logout');
$app->view('template/footer'); $app->view('template/footer');

View File

@ -13,7 +13,7 @@ $message = $model->returnGivenString('Hei på deg!!');
// Render the view with prepared data // Render the view with prepared data
$app->view('template/header', ['title' => 'Eksempel side']); $app->view('template/header', ['title' => 'Eksempel side']);
$app->view('example', [ $app->view('pages/example', [
'message' => $message 'message' => $message
]); ]);
$app->view('template/footer'); $app->view('template/footer');

View File

@ -2,5 +2,5 @@
$app = require '../app/inc.php'; $app = require '../app/inc.php';
$app->view('template/header', ["title" => "Forside"]); $app->view('template/header', ["title" => "Forside"]);
$app->view('index'); $app->view('pages/index');
$app->view('template/footer'); $app->view('template/footer');

View File

@ -18,5 +18,5 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST')
} }
$app->view('template/header', ["title" => "Logg inn"]); $app->view('template/header', ["title" => "Logg inn"]);
$app->view('login'); $app->view('pages/login');
$app->view('template/footer'); $app->view('template/footer');

View File

@ -21,5 +21,5 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST')
} }
$app->view('template/header', ['title' => 'Simulator']); $app->view('template/header', ['title' => 'Simulator']);
$app->view('simulator'); $app->view('pages/simulator');
$app->view('template/footer'); $app->view('template/footer');

View File

@ -4,5 +4,5 @@ $app = require '../../../app/inc.php';
$model = $app->model('Teamtable'); $model = $app->model('Teamtable');
$app->view('template/header', ['title' => 'Endre lagtabell']); $app->view('template/header', ['title' => 'Endre lagtabell']);
$app->view('teamtable/edit/index', ["teams" => $model->getTable()]); $app->view('pages/teamtable/edit/index', ["teams" => $model->getTable()]);
$app->view('template/footer'); $app->view('template/footer');

View File

@ -4,5 +4,5 @@ $app = require '../../app/inc.php';
$model = $app->model('Teamtable'); $model = $app->model('Teamtable');
$app->view('template/header', ['title' => 'Lagtabell']); $app->view('template/header', ['title' => 'Lagtabell']);
$app->view('teamtable/index', ["teams" => $model->getTable()]); $app->view('pages/teamtable/index', ["teams" => $model->getTable()]);
$app->view('template/footer'); $app->view('template/footer');