TEsting things out

This commit is contained in:
Erik Thuning 2018-07-11 16:46:10 +02:00
parent a33f8172f6
commit b31e9383ff

@ -1,5 +1,5 @@
<?php
require_once('./include/functions.php');
require_once('./include/view.php');
header('Content-Type: text/html; charset=UTF-8');
@ -8,14 +8,19 @@ if(isset($_GET['action'])) {
$action = $_GET['action'];
}
$page = null;
switch($action) {
case 'start':
default:
print format_page('TESTING TITLE', "FOO BAR");
$page = new StartPage();
$page->title = "Boka2";
$page->content = "Här är det tomt just nu.";
break;
case 'do':
print "hej";
break;
}
if($page) {
print($page->get_contents());
}
?>