소스 검색

WIP secondary navbar

double-navbar
Ruben De Baets 2 년 전
부모
커밋
f21c47588f
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10
    0
      public/index.php

+ 10
- 0
public/index.php 파일 보기

@@ -55,6 +55,15 @@ function addNavbar($twig)
}


function addNavbar2($twig)
{
$urls = [
["link" => "https://www.google.be", "name" => "Bing"],
["link" => "https://www.facebook.com", "name" => "Apple"],
["link" => "https://www.twiter.com", "name" => "TikTok"]
];
$twig->addBlockVariable('navbar', ['urls' => $urls]);
}

function addFooter($response)
{
@@ -82,6 +91,7 @@ $app->get('/', function (Request $request, Response $response, array $args) {

$twig = $this->get('twig');
addNavbar($twig);
addNavbar2($twig);
$err = ['type' => 'error', 'text' => "something's wrong"];

$twig->addMessage($err);

Loading…
취소
저장