Fat commit
This commit is contained in:
		
							parent
							
								
									5098ed51cb
								
							
						
					
					
						commit
						fd2e8d48df
					
				@ -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;
 | 
				
			||||||
 | 
				
			|||||||
@ -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');
 | 
				
			||||||
@ -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');
 | 
				
			||||||
@ -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');
 | 
				
			||||||
@ -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');
 | 
				
			||||||
@ -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');
 | 
				
			||||||
@ -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');
 | 
				
			||||||
@ -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');
 | 
				
			||||||
		Reference in New Issue
	
	Block a user