- added error_reporting if devMode

- added TestController.php
- added temp function to load controllers (should load later via seo urls)
- added baseTemplate for default look and feel
- removed adding file extension -> always need to be .php!
This commit is contained in:
VersusTune 2020-04-03 13:19:26 +02:00
commit 7ba4e3e0a6
8 changed files with 97 additions and 14 deletions

View file

@ -22,10 +22,18 @@ class Venom
{
// we need to load the current controller and the current start template.
// after this we can start the renderer
$this->renderer->init(null);
$this->renderer->init($this->findController());
$this->renderer->render();
}
private function findController(): ?RenderController
{
if (isset($_GET['cl'], $this->controllers[$_GET['cl']])) {
return $this->controllers[$_GET['cl']];
}
return null;
}
public function initModules(array $modules): void
{
foreach ($modules as $key => $moduleClass) {
@ -50,9 +58,4 @@ class Venom
{
}
private function findController()
{
}
}