This repository has been archived on 2023-01-08. You can view files and clone it, but cannot push or open issues or pull requests.
stafett-for-livet/example.php
2021-10-11 10:34:32 +02:00

27 lines
793 B
PHP

<?php
// This file should serve as an example showing current implemented features
require_once("app/common.php");
// Parameters that will be used in the template files
// For more options and explanations, check the 'app/template.php' file
$templateParameters["title"] = "Eksempel side";
// Alerts which will be executed from the template
$_SESSION['alert'][] = ['info', 'Eksempel!'];
$_SESSION['alert'][] = ['success', 'Eksempel!'];
$_SESSION['alert'][] = ['warning', 'Eksempel!'];
$_SESSION['alert'][] = ['danger', 'Eksempel!'];
$_SESSION['alert'][] = ['foo', 'Eksempel!'];
// Include the top of page
require_once("template/_header.php");
?>
<h1>Eksempel side</h1>
<p>Dette er en eksempel side</p>
<?php
// Include the rest of the page
require_once("template/_footer.php");
?>