fwtrash/inc/router.inc.php

16 lines
329 B
PHP
Raw Normal View History

2022-12-20 11:21:31 +00:00
<?php
$routes = [
'doppelklinge' => 'doppelklinge',
'vermessung' => 'vermessung',
'default' => 'default'
];
ob_start();
if(array_key_exists($_page, $routes))
require_once("./pages/{$routes[$_page]}.page.php");
else
require_once("./pages/{$routes['default']}.page.php");
$_content = ob_get_contents();
ob_end_clean();