version 0.1 beta base nibiru framework, added missing controller file, and a minor bugfix for the navbar
This commit is contained in:
42
application/controller/indexController.php
Normal file
42
application/controller/indexController.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
namespace Nibiru;
|
||||
|
||||
/**
|
||||
* User - stephan
|
||||
* Date - 24.01.17
|
||||
* Time - 23:08
|
||||
* @author - Stephan Kasdorf
|
||||
* @category - [PLEASE SPECIFIY]
|
||||
* @license - BSD License
|
||||
*/
|
||||
|
||||
class indexController extends View implements IController
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->navigationAction();
|
||||
$this->pageAction();
|
||||
}
|
||||
|
||||
public function pageAction()
|
||||
{
|
||||
View::getInstance()->assign(
|
||||
array(
|
||||
'name' => 'Beispielseite',
|
||||
'title' => 'Stephan Kasdorf - Nibiru Example',
|
||||
'css' => Config::getInstance()->getConfig()[View::ATM_SETTINGS]["smarty.css"],
|
||||
'js' => Config::getInstance()->getConfig()[View::ATM_SETTINGS]["smarty.js"]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function navigationAction()
|
||||
{
|
||||
JsonNavigation::getInstance()->loadJsonNavigationArray();
|
||||
}
|
||||
|
||||
public function formAction( $action = false, $name = "", $type = "", $labeled = false, $data = array() )
|
||||
{
|
||||
// TODO: Implement formAction() method.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user