version 0.2 beta nibiru framework, added onclick to the navbar json configuration, added a new dispatcher class that can handle actions as well, removed the dirty method calls fro the constructor $this->pageAction() and the navbar call, added ODBC support, and a postgress class. Overall improved the core functions of the framework.

This commit is contained in:
Stephan Kasdorf
2017-07-19 08:58:06 +02:00
parent 8a2bb432f7
commit 4a8e3493ab
14 changed files with 577 additions and 40 deletions

View File

@@ -14,8 +14,7 @@ class indexController extends View implements IController
{
public function __construct()
{
$this->navigationAction();
$this->pageAction();
}
public function pageAction()

View File

@@ -1,6 +1,6 @@
{
"navigation" :
{
"Home": { "link": "/", "tooltip": "Home", "icon": "icon-home" }
"Home": { "link": "/", "tooltip": "Home", "icon": "icon icon-home" }
}
}

View File

@@ -6,10 +6,17 @@
<ul class="nav nav-pills iconav-nav">
{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>
<small class="iconav-nav-label visible-xs-block">{$naventry.title}</small>
</a>
{if $naventry.onclick}
<a title="{$naventry.tooltip}" data-toggle="tooltip" data-placement="right" data-container="body" onclick="{$naventry.onclick}">
<span class="{$naventry.icon}"></span>
<small class="iconav-nav-label visible-xs-block">{$naventry.title}</small>
</a>
{elseif $naventry.link}
<a href="{$naventry.link}" title="{$naventry.tooltip}" data-toggle="tooltip" data-placement="right" data-container="body">
<span class="{$naventry.icon}"></span>
<small class="iconav-nav-label visible-xs-block">{$naventry.title}</small>
</a>
{/if}
</li>
{/foreach}
</ul>