fixed home link
This commit is contained in:
parent
e378498bf3
commit
979594a35c
2 changed files with 6 additions and 2 deletions
|
@ -46,7 +46,11 @@
|
||||||
<ul id="navi">
|
<ul id="navi">
|
||||||
<?php foreach($this->mainNavigationItems as $item): ?>
|
<?php foreach($this->mainNavigationItems as $item): ?>
|
||||||
<li <?php if($item['id'] == $this->activeMenuItem) echo 'class="active"'?>>
|
<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>
|
</li>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -39,4 +39,4 @@ CREATE TABLE `page` (
|
||||||
--
|
--
|
||||||
|
|
||||||
INSERT INTO `page` (`title`, `url`, `content`) VALUES ("Home", "home", "Wilkommen bei Katharsis");
|
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", "/");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue