<?php
$app = require '../app/inc.php';
// Flash a message on the next request
$app->session->flash('Eksempel', 'info');
$app->session->flash('Eksempel', 'success');
$app->session->flash('Eksempel', 'warning');
$app->session->flash('Eksempel', 'danger');
// Grab model and perform task
$model = $app->model('Example');
$message = $model->returnGivenString('Hei på deg!!');
// Render the view with prepared data
$app->view('template/header', ['title' => 'Eksempel side']);
$app->view('pages/example', [
'message' => $message
]);
$app->view('template/footer');