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:
@@ -14,8 +14,7 @@ class indexController extends View implements IController
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->navigationAction();
|
||||
$this->pageAction();
|
||||
|
||||
}
|
||||
|
||||
public function pageAction()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"navigation" :
|
||||
{
|
||||
"Home": { "link": "/", "tooltip": "Home", "icon": "icon-home" }
|
||||
"Home": { "link": "/", "tooltip": "Home", "icon": "icon icon-home" }
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user