【发布时间】:2012-10-31 09:09:11
【问题描述】:
有两个 twig 文件 src/MyVendor/MyBundle/Resources/views/MyApp/layout.html.twig 和 src/MyVendor/MyBundle/Resources/views/MyApp/myView。 html.twig.
src/MyVendor/MyBundle/Resources/views/MyApp/myView.html.twig的内容
{% extends "layout.html.twig" %}
{% block content %}
view content is here.
{% endblock %}
但我收到一个错误
Unable to find template "layout.html.twig" in
"MyVendorMyBundle:MyApp:myView.html.twig"
【问题讨论】: