diff --git a/app/model/Teamtable.php b/app/model/Teamtable.php
new file mode 100644
index 0000000..caf64fa
--- /dev/null
+++ b/app/model/Teamtable.php
@@ -0,0 +1,17 @@
+dbh = $database->conn;
+ }
+
+ public function getTable(): array
+ {
+ $sth = $this->dbh->query('SELECT * FROM lagtabell');
+ return $sth->fetchAll(PDO::FETCH_ASSOC);
+ }
+}
\ No newline at end of file
diff --git a/app/view/teamtable/edit/index.php b/app/view/teamtable/edit/index.php
new file mode 100644
index 0000000..292faee
--- /dev/null
+++ b/app/view/teamtable/edit/index.php
@@ -0,0 +1,24 @@
+
Endre lagtabell
+
+
+
+ ID |
+ Navn |
+ Bedrift |
+ Kortnummer |
+ Leder |
+ Telefon |
+ Deltagere |
+ Runder |
+ Bestetid |
+
+ ';
+ foreach ($row as $key) {
+ echo "$key | ";
+ }
+ echo '';
+ }
+ ?>
+
\ No newline at end of file
diff --git a/app/view/view-teams.php b/app/view/teamtable/index.php
similarity index 100%
rename from app/view/view-teams.php
rename to app/view/teamtable/index.php
diff --git a/public/teamtable/edit/index.php b/public/teamtable/edit/index.php
new file mode 100644
index 0000000..1c7d6d7
--- /dev/null
+++ b/public/teamtable/edit/index.php
@@ -0,0 +1,8 @@
+model('Teamtable');
+
+$app->view('template/header', ['title' => 'Endre lagtabell']);
+$app->view('teamtable/edit/index', ["teams" => $model->getTable()]);
+$app->view('template/footer');
\ No newline at end of file
diff --git a/public/teamtable/index.php b/public/teamtable/index.php
new file mode 100644
index 0000000..7083a3d
--- /dev/null
+++ b/public/teamtable/index.php
@@ -0,0 +1,8 @@
+model('Teamtable');
+
+$app->view('template/header', ['title' => 'Lagtabell']);
+$app->view('teamtable/index', ["teams" => $model->getTable()]);
+$app->view('template/footer');
\ No newline at end of file