我有這個代碼,它給我錯誤:無法找到模板「layout.html.twig」在Categorias \ listar.html.twig在第1行。無法找到模板「layout.html.twig」Symfony3
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}LAYOUT title - CATEGORIAS{% endblock %}</title>
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
{% block stylesheets %}
<style>
.container{
border: 1px solid black;
background: #eee;
width: 85%;
height: 300px;
}
</style>
{% endblock %}
</head>
<body>
<div class="container">
{%block container %}
Contenido por defecto de CATEGORIAS LAYOUT
{%endblock %}
</div>
{% block body %}<h1>HOLA SOY EL bloque Body por defecto de CATEGORIAS</h1>{% endblock %}
{% block javascripts %}{% endblock %}
</body>
</html>
{% extends "layout.html.twig" %}
{%block container %}
<h1>Contenido del body customizado en listar.html.twig</h1>
{%endblock%}