-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
25 lines (19 loc) · 762 Bytes
/
index.php
File metadata and controls
25 lines (19 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
* Normalerweise werden Controller in Wordpress mit einzelnen PHP-Dateien im Root-Verzeichnis ermittelt.
* Diese werden hier funktional gesteuert. Die einzelnen Controller sammeln dann die Informationen (News,
* Events, etc.), die für den Aufbaiu der Seite benötigt werden.
*/
// either set choose config files manually or scan whole directory
// $config_array = ["site", "theme_support", "fields", "mimes", "assets", "routes", "widgets"];
/*
$route = new \Contexis\Core\Router(\Contexis\Core\Config::load('routes'));
$controller = 'Contexis\\Controllers\\' . $route->get();
if (class_exists($controller)) {
$pageObject = new $controller();
$pageObject->render();
}
else {
echo "No Controller found";
}
*/