REFACTORING: updated the autoloader, currently a duplicate section has to be refactored. Added a Registry for the settings section of every module.

This commit is contained in:
Stephan Kasdorf
2019-11-10 23:00:26 +01:00
parent d0971daff8
commit 918a2cb4ec
7 changed files with 206 additions and 26 deletions

View File

@@ -10,6 +10,7 @@ class controllerController extends Controller
View::assign([
'name' => 'rapid prototyping framework',
'title' => 'Nibiru Controller Example',
'ndbraw_output' => print_r(Registry::getInstance()->loadModuleConfigByName('users'), true),
'css' => Config::getInstance()->getConfig()[View::NIBIRU_SETTINGS]["smarty.css"],
'js' => Config::getInstance()->getConfig()[View::NIBIRU_SETTINGS]["smarty.js"]
]);

View File

@@ -0,0 +1,3 @@
[USERS]
name = "users"
path = "/application/module/users"

View File

@@ -7,9 +7,12 @@ debug_template = "/../../application/view/templates/shared/debug.tpl"
debugbar = true
[AUTOLOADER]
class.pos[] = "users"
trait.pos[] = "users"
iface.pos[] = "register"
iface.pos[] = "users"
trait.pos[] = "register"
trait.pos[] = "users"
class.pos[] = "register"
class.pos[] = "users"
[EMAIL]
register.smtp = 1

View File

@@ -121,7 +121,9 @@
<p>
<!-- Smarty $raw output -->
{if isset($ndbraw_output)}
<pre>
{$ndbraw_output}
</pre>
{else}
{$message}
{/if}