First commit, version 0.1 beta base nibiru framework

This commit is contained in:
Stephan Kasdorf
2017-06-16 12:21:19 +02:00
parent 7d475ceb6b
commit 4bfe207b78
556 changed files with 113905 additions and 26 deletions

38
core/c/display.php Normal file
View File

@@ -0,0 +1,38 @@
<?php
namespace Nibiru;
/**
* Created by PhpStorm.
* User: stephan
* Date: 24.01.17
* Time: 11:19
*/
class Display
{
/**
* Call this method to get singleton
* @return Display
*/
public static function getInstance()
{
static $instance = null;
if ($instance === null)
{
$instance = new Display();
}
return $instance;
}
/**
* Display constructor.
*/
protected function __construct()
{
}
public function display()
{
View::getInstance()->display(Router::getInstance()->tplName(true));
}
}