model('Teamtable'); $teams = $model->getAll(); $app->view('template/header', ['title' => 'Lagtabell']); $app->view('pages/teamtable/index', ["teams" => $teams]); $app->view('template/footer');