Explorar el Código

add 2nd navbar

Afwerken
Ruben De Baets hace 2 años
padre
commit
22eeb11e6a
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7
    0
      public/index.php

+ 7
- 0
public/index.php Ver fichero

@@ -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;

Cargando…
Cancelar
Guardar