project folder structure:
/app
/controllers
ServiceController.php
/views
/service
about.volt
index.volt
/public
/css
index.php
{# index.volt #}
<!DOCTYPE html>
<html>
<head>
{% block head %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>
{# about.volt #}
{% block head %}<... head section here ...>{% endblock %}
{% block content %}<... simple html code here ...>{% endblock %}
but looks like it does not work, event if I add {% extends "index.volt" %} to about.volt. And when I change the 2 files like
{# index.volt #}
<!DOCTYPE html>
<html>
<head>
</head>
<body>
{{ content() }}
</body>
</html>
{# about.volt #}
<... head section here ...>
<... simple html code here ...>
the page can be shown on browser, but that is not what I want, any idea? thx.