First commit, version 0.1 beta base nibiru framework
This commit is contained in:
38
core/c/display.php
Normal file
38
core/c/display.php
Normal 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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user