@@ -52,6 +52,12 @@ function addNavbar($twig) | |||
} | |||
function addNavbar2($twig) | |||
{ | |||
$menu = new Menu('secondary'); | |||
$twig->addBlockVariable('navbar', ['urls' => $menu]); | |||
} | |||
function addFooter($response) | |||
{ | |||
@@ -74,6 +80,7 @@ $app->get('/', function (Request $request, Response $response, array $args) { | |||
$twig = $this->get('twig'); | |||
addNavbar($twig); | |||
addNavbar2($twig); | |||
$a = $twig->render('index.html.twig', $vars); | |||
$response->getBody()->write($a); | |||
return $response; |