CORE UPDATE: Minor update concerning the autoloading class in the core, now it is also possible to give a loading order through the configuration

Minor update concerning the form factory classes in the core, now some javascript events are implemented as well, another update concerning functinoallity will follow soon.
             Update on the example configuration file, implementing the autoloading order of interfaces, moduels and traits.
             Update for multidatabase support, see the documentation on http://www.nibiru-framework.com
This commit is contained in:
Stephan Kasdorf
2018-08-28 11:50:22 +02:00
parent 50ee482b9e
commit aff8730316
15 changed files with 343 additions and 86 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace Nibiru\Adapter;
/**
* @desc this file is for the autoloader to function properly,
* you might as well use it as the primary user interface for your
* application
* Created by PhpStorm.
* User: kasdorf
* Date: 28.08.18
* Time: 11:21
*/
interface Users
{
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Nibiru\Module;
/**
* @desc this file is for the autoloader to function properly,
* you might as well use it as the primary user class for your
* application, the interface an the trait are currently implemented
* Created by PhpStorm.
* User: kasdorf
* Date: 28.08.18
* Time: 11:22
*/
use Nibiru\Adapter;
use Nibiru\Messages;
class Users implements Adapter\Users
{
use Messages\Users;
}

View File

@@ -9,6 +9,11 @@ config_dir = "/../../application/view/configs/"
class_file = "core/l/Smarty/Smarty.class.php"
debugbar = false
[AUTOLOADER]
class.pos[] = "users"
trait.pos[] = "users"
iface.pos[] = "users"
[EMAIL]
register.smtp = 1
register.smtp[password] = "YOURPASSWORD"
@@ -21,25 +26,27 @@ register.subject = "YOURSUBJECTLINE"
register.text = "PATHTOYOURHTMLTEMPLATE"
[SETTINGS]
pageurl = "YOURPAGEURLWITHPROTOCOL"
navigation = "navigation.json"
dbmodel = "/../../application/model/"
module = "/../../application/module/"
background.img[] = "public/img/nibiru3.jpg"
smarty.css[] = "public/css/v3/roboto.css"
smarty.css[] = "public/css/v3/toolkit-inverse.css"
smarty.css[] = "public/css/v3/application.css"
smarty.css[] = "public/css/v3/jquery-ui.css"
smarty.css[] = "public/css/v3/nibiru-debug.css"
smarty.css[] = "public/css/v3/tiamat-form.css"
smarty.js[] = "public/js/v3/jquery.min.js"
smarty.js[] = "public/js/v3/tether.min.js"
smarty.js[] = "public/js/v3/jquery-ui.js"
smarty.js[] = "public/js/v3/chart.js"
smarty.js[] = "public/js/v3/tablesorter.min.js"
smarty.js[] = "public/js/v3/toolkit.js"
smarty.js[] = "public/js/v3/application.js"
smarty.js[] = "public/js/v3/nibiru-debug.js"
pageurl = "YOURPAGEURLWITHPROTOCOL"
navigation = "navigation.json"
dbmodel = "/../../application/model/"
module = "/../../application/module/"
interfaces = "/../../application/interfaces/"
trait = "/../../application/trait/"
background.img[] = "public/img/nibiru3.jpg"
smarty.css[] = "public/css/v3/roboto.css"
smarty.css[] = "public/css/v3/toolkit-inverse.css"
smarty.css[] = "public/css/v3/application.css"
smarty.css[] = "public/css/v3/jquery-ui.css"
smarty.css[] = "public/css/v3/nibiru-debug.css"
smarty.css[] = "public/css/v3/tiamat-form.css"
smarty.js[] = "public/js/v3/jquery.min.js"
smarty.js[] = "public/js/v3/tether.min.js"
smarty.js[] = "public/js/v3/jquery-ui.js"
smarty.js[] = "public/js/v3/chart.js"
smarty.js[] = "public/js/v3/tablesorter.min.js"
smarty.js[] = "public/js/v3/toolkit.js"
smarty.js[] = "public/js/v3/application.js"
smarty.js[] = "public/js/v3/nibiru-debug.js"
[ROUTING]
route[index] = "/"

View File

@@ -0,0 +1,16 @@
<?php
namespace Nibiru\Messages;
/**
* @desc this file is for the autoloader to function properly,
* you might as well use it as the primary user trait for your
* application
* Created by PhpStorm.
* User: kasdorf
* Date: 28.08.18
* Time: 11:24
*/
trait Users
{
}