fixed home link

This commit is contained in:
jeena 2013-07-09 00:05:14 +02:00
parent e378498bf3
commit 979594a35c
2 changed files with 6 additions and 2 deletions

View file

@ -46,7 +46,11 @@
<ul id="navi">
<?php foreach($this->mainNavigationItems as $item): ?>
<li <?php if($item['id'] == $this->activeMenuItem) echo 'class="active"'?>>
<a href="<?php echo $this->base ?>/<?php echo $item['controller'] ?>/<?php echo $item['action'] ?>"><?php echo $item['name'] ?></a>
<?php if($item['link']): ?>
<a href="<?php echo $item['link'] ?>"><?php echo $item['name'] ?></a>
<?php else: ?>
<a href="<?php echo $this->base ?>/<?php echo $item['controller'] ?>/<?php echo $item['action'] ?>"><?php echo $item['name'] ?></a>
<?php endif ?>
</li>
<?php endforeach ?>
</ul>

View file

@ -39,4 +39,4 @@ CREATE TABLE `page` (
--
INSERT INTO `page` (`title`, `url`, `content`) VALUES ("Home", "home", "Wilkommen bei Katharsis");
INSERT INTO `navigation` (`name`, `controller`, `action`) VALUES ("Home", "page", "home");
INSERT INTO `navigation` (`name`, `link`) VALUES ("Home", "/");