Improved: The Router now accepts actions, either trough the _action as parameter, or on the URL pattern after the controller name Example: http://youdomain/[controllername]/[actionname]/ It is now possible to load as many navigations on the page as wanted by passing the name to the JsonNavigation::getInstance()->loadJsonNavigationArray('[NAME]'); call in the navigationAction of the Controller Building forms by simple adding the namespace use Nibiru\Factory\Form; and calling Example: Form::addInputTypeText( array( 'name' => 'lastname', 'value' => 'placeholder' ) ); To finalize the form the last call should be something like this: Form::addForm( array('name' => 'testform', 'method' => 'post', 'action' => '/' . Router::getInstance()->currentPage(), 'target' => '_self') ); The Database design has fully been refactored, now it contains an autoloading mechanism which can be triggert by createing a database folder in the application folder, a Example file is in the folder applicatoin/database The Database access can now be implemented anywhere in your application by adding the namespace to your database accessing Logic: use Nibiru\Factory\Db;
88 lines
2.7 KiB
PHP
88 lines
2.7 KiB
PHP
<?php
|
|
/**
|
|
* User - stephan
|
|
* Date - 24.01.17
|
|
* Time - 20:28
|
|
* @author - Stephan Kasdorf
|
|
* @category - [PLEASE SPECIFIY]
|
|
* @license - BSD License
|
|
*/
|
|
session_start();
|
|
/**
|
|
* @desc Nibiru framework functionality
|
|
*/
|
|
require_once __DIR__ . '/t/messages.php';
|
|
require_once __DIR__ . '/c/settings.php';
|
|
require_once __DIR__ . '/c/config.php';
|
|
require_once __DIR__ . '/c/router.php';
|
|
require_once __DIR__ . '/i/engine.php';
|
|
require_once __DIR__ . '/c/engine.php';
|
|
/**
|
|
* @desc Database connectivity
|
|
*/
|
|
require_once __DIR__ . '/i/mysql.php';
|
|
require_once __DIR__ . '/c/mysql.php';
|
|
require_once __DIR__ . '/i/pdo.php';
|
|
require_once __DIR__ . '/c/pdo.php';
|
|
require_once __DIR__ . '/i/odbc.php';
|
|
require_once __DIR__ . '/c/odbc.php';
|
|
require_once __DIR__ . '/i/postgres.php';
|
|
require_once __DIR__ . '/c/postgres.php';
|
|
require_once __DIR__ . '/i/db.php';
|
|
require_once __DIR__ . '/a/db.php';
|
|
require_once __DIR__ . '/f/db.php';
|
|
/**
|
|
* @desc MVC functionality
|
|
*/
|
|
require_once __DIR__ . '/i/form.php';
|
|
require_once __DIR__ . '/f/form.php';
|
|
require_once __DIR__ . '/c/form.php';
|
|
require_once __DIR__ . '/c/typetext.php';
|
|
require_once __DIR__ . '/c/typepassword.php';
|
|
require_once __DIR__ . '/c/typeemail.php';
|
|
require_once __DIR__ . '/c/typesubmit.php';
|
|
require_once __DIR__ . '/c/typetextarea.php';
|
|
require_once __DIR__ . '/c/typeradio.php';
|
|
require_once __DIR__ . '/c/typedate.php';
|
|
require_once __DIR__ . '/c/typedatetime.php';
|
|
require_once __DIR__ . '/c/typetelefon.php';
|
|
require_once __DIR__ . '/c/typesearch.php';
|
|
require_once __DIR__ . '/c/typehidden.php';
|
|
require_once __DIR__ . '/c/typeimagesubmit.php';
|
|
require_once __DIR__ . '/c/typenumber.php';
|
|
require_once __DIR__ . '/c/typereset.php';
|
|
require_once __DIR__ . '/c/typefileupload.php';
|
|
require_once __DIR__ . '/c/typecheckbox.php';
|
|
require_once __DIR__ . '/c/typecolor.php';
|
|
require_once __DIR__ . '/c/typeoption.php';
|
|
require_once __DIR__ . '/c/typeselect.php';
|
|
require_once __DIR__ . '/c/typerange.php';
|
|
require_once __DIR__ . '/c/typeurl.php';
|
|
require_once __DIR__ . '/i/controller.php';
|
|
require_once __DIR__ . '/c/controller.php';
|
|
require_once __DIR__ . '/i/view.php';
|
|
require_once __DIR__ . '/c/view.php';
|
|
require_once __DIR__ . '/c/json-navigation.php';
|
|
|
|
|
|
/**
|
|
* @desc currently unfinished
|
|
*/
|
|
require_once __DIR__ . '/i/soap.php';
|
|
require_once __DIR__ . '/c/soap.php';
|
|
require_once __DIR__ . '/i/auth.php';
|
|
require_once __DIR__ . '/c/auth.php';
|
|
/**
|
|
* @desc main application starters
|
|
*/
|
|
require_once __DIR__ . '/c/debug.php';
|
|
require_once __DIR__ . '/c/display.php';
|
|
/**
|
|
* @desc Framework dispatch process
|
|
* basic controller and action handling
|
|
*/
|
|
require_once __DIR__ . '/c/dispatcher.php';
|
|
/**
|
|
* @desc Run the framework no game no gain
|
|
*/
|
|
Nibiru\Dispatcher::getInstance()->run(); |