This commit is contained in:
William 2022-01-17 07:30:09 +01:00
parent 6d4f387941
commit 28d451c0d4
3 changed files with 28 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<?php $this->view('template/header', ['title' => $title]); ?>
<h1>Hello world</h1>
<p>This is a message from the view</p>
<h1>Velkommen til forsida!</h1>
<p>Ting fungerer noen ganger.</p>
<p><?=$data?></p>
<?php $this->view('template/footer'); ?>

18
app/view/login.php Normal file
View File

@ -0,0 +1,18 @@
<?php $this->view('template/header', ['title' => $title]); ?>
<h1>Logg inn</h1>
<p>Fyll inn påloggingsinformasjonen din.</p>
<form method="post">
<label for="username">Brukernavn:</label>
<br>
<input type="text" id="username" name="username">
<br>
<label for="password">Passord:</label>
<br>
<input type="password" id="password" name="password">
<br>
<br>
<input type="submit" value="Bekreft">
</form>
<?php $this->view('template/footer'); ?>

8
public/login.php Normal file
View File

@ -0,0 +1,8 @@
<?php
require("../app/inc.php");
$contr = new Controller;
$contr->view('login', [
"title" => "Logg inn",
]);