Commit
This commit is contained in:
parent
6d4f387941
commit
28d451c0d4
@ -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
18
app/view/login.php
Normal 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
8
public/login.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
require("../app/inc.php");
|
||||
|
||||
$contr = new Controller;
|
||||
|
||||
$contr->view('login', [
|
||||
"title" => "Logg inn",
|
||||
]);
|
Reference in New Issue
Block a user