27 lines
793 B
PHP
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");
|
|
?>
|