Przeglądaj źródła

working adding navbar items

double-navbar
Ruben De Baets 2 lat temu
rodzic
commit
548a99049a
1 zmienionych plików z 7 dodań i 3 usunięć
  1. 7
    3
      src/View/Twig.php

+ 7
- 3
src/View/Twig.php Wyświetl plik

@@ -33,9 +33,13 @@ class Twig
// add block variables to the global variable bag
public function addBlockVariable($block, $data)
{
$current = $this->variables[$block];
$new = array_merge($current, $data);
$this->variables[$block] = $new;
$current = $this->variables[$block]['urls'];
if ($current) {
$new = array_merge($current, $data['urls']);
} else {
$new = $data['urls'];
}
$this->variables[$block]['urls'] = $new;
}

public function render($tmpl, $vars)

Ładowanie…
Anuluj
Zapisz