version 0.1 beta base nibiru framework, added missing controller file, and a minor bugfix for the navbar

This commit is contained in:
Stephan Kasdorf
2017-06-16 14:35:22 +02:00
parent 4bfe207b78
commit 8a2bb432f7
3 changed files with 45 additions and 3 deletions

View 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.
}
}

View File

@@ -4,7 +4,7 @@
</a>
<div class="iconav-slider">
<ul class="nav nav-pills iconav-nav">
{foreach $json as $naventry}
{foreach $navigationJson as $naventry}
<li >
<a href="{$naventry.link}" title="{$naventry.tooltip}" data-toggle="tooltip" data-placement="right" data-container="body">
<span class="icon {$naventry.icon}"></span>