Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]TWIG problem
-Analka-
post
Post #1





Goście







Witam

Niemogę poradzić sobię z funkcją extend w TWIGu.

Struktura:

templates/
---default/
-------index.html
-------demo.html
-------footer.html
---oragneblue/
index.php

index.html:
  1. {% block footer %} {% endblock %}


footer.hml:
  1. {% extends "index.html" %}
  2.  
  3. {% block footer %}
  4.  
  5. (c) {{ "now"|date("Y") }}
  6.  
  7. {% endblock %}


i nic nie wyświetla gdy wejdę na strone główną tzn nie wyświetla stopki. I tu pytanie jak to załadować czy źle korzystam z extend? J
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 16:08