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:
@@ -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"]
|
||||
]);
|
||||
|
||||
3
application/module/users/settings/users.ini
Normal file
3
application/module/users/settings/users.ini
Normal file
@@ -0,0 +1,3 @@
|
||||
[USERS]
|
||||
name = "users"
|
||||
path = "/application/module/users"
|
||||
@@ -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
|
||||
|
||||
@@ -121,7 +121,9 @@
|
||||
<p>
|
||||
<!-- Smarty $raw output -->
|
||||
{if isset($ndbraw_output)}
|
||||
<pre>
|
||||
{$ndbraw_output}
|
||||
</pre>
|
||||
{else}
|
||||
{$message}
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user