add MenuAgent

This commit is contained in:
coderkun 2014-01-17 13:12:02 +01:00
commit 99a1d525a7
6 changed files with 78 additions and 1 deletions

View file

@ -0,0 +1,35 @@
<?php
/**
* The Legend of Z
*
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
* @copyright 2014 Heinrich-Heine-Universität Düsseldorf
* @license http://www.gnu.org/licenses/gpl.html
* @link https://bitbucket.org/coderkun/the-legend-of-z
*/
namespace hhu\z\agents\bottomlevel;
/**
* Agent to display a menu.
*
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
*/
class MenuAgent extends \nre\agents\BottomlevelAgent
{
/**
* Action: index.
*/
public function index()
{
}
}
?>

View file

@ -28,6 +28,8 @@
*/
public function index()
{
// Add menu
$this->addSubAgent('Menu');
}
}

View file

@ -0,0 +1,35 @@
<?php
/**
* The Legend of Z
*
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
* @copyright 2014 Heinrich-Heine-Universität Düsseldorf
* @license http://www.gnu.org/licenses/gpl.html
* @link https://bitbucket.org/coderkun/the-legend-of-z
*/
namespace hhu\z\controllers;
/**
* Controller of the Agent to display a menu.
*
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
*/
class MenuController extends \hhu\z\Controller
{
/**
* Action: index.
*/
public function index()
{
}
}
?>

View file

@ -9,7 +9,10 @@
</head>
<body>
<h1>The Legend of Z</h1>
<header>
<h1>The Legend of Z</h1>
<?=$menu?>
</header>
<article>
<?=$intermediate?>
</article>

View file

@ -0,0 +1,2 @@
<nav>
</nav>