- cleaned up some code
- added DataLoader - added assetDir - splitted modules and controller namespace
This commit is contained in:
parent
d3d889dc4c
commit
21977588d8
18 changed files with 263 additions and 41 deletions
1
base/config.base.php
Normal file → Executable file
1
base/config.base.php
Normal file → Executable 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
|
||||
|
|
|
|||
|
|
@ -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
2
base/module.base.php
Normal file → Executable 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,
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue