- cleaned up some code

- added DataLoader
- added assetDir
- splitted modules and controller namespace
This commit is contained in:
Maurice Grönwoldt 2020-09-20 17:15:20 +02:00
commit 21977588d8
18 changed files with 263 additions and 41 deletions

1
base/config.base.php Normal file → Executable file
View file

@ -42,6 +42,7 @@ $config->setSecurity([
// all themes are in __DIR__/public/theme/
$config->setRender([
'theme' => 'default', //very important! it will search for a folder with this name.
'assetDir' => 'default',
'baseFile' => 'base', //this will called after all templates are rendered...
'useCache' => false, //is only on big systems good
'cacheName' => 'defaultCache', //this is for bigger systems, ignore it

View file

@ -1,3 +1,3 @@
<?php
require_once __DIR__ . '/../lang/de.php';
require_once __DIR__ . '/../lang/example.php';

2
base/module.base.php Normal file → Executable file
View file

@ -5,5 +5,5 @@ $modules = [];
// register controllers that can handle templates ;) need to have a render function for this
$controllers = [
'test' => \Modules\TestController::class,
'test' => \Controllers\TestController::class,
];