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

@@ -1,5 +1,5 @@
# Nibiru
#####Version 0.1 beta
Version 0.1 beta
## Introduction
<div style="word-spacing: 2px; letter-spacing: 0.1px; font-size: 12px; margin-bottom: 15px;">Nibiru is a rapid prototyping framework written in PHP and based on the MVC design pattern. Now one may say that writing <br>
@@ -43,4 +43,4 @@ Engine Implementation.</div>
<div style="word-spacing: 2px; letter-spacing: 0.1px; font-size: 15px; margin-bottom: 15px;">The start is done, have success with PHP prototyping, and always remember to have fun!</div>
######Author: Stephan Kasdorf<br><br>
Author: Stephan Kasdorf<br><br>

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>