TEsting things out
This commit is contained in:
parent
a33f8172f6
commit
b31e9383ff
11
index.php
11
index.php
@ -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());
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user