How do I tell the controller which view to use?
IndexController
indexAction()
should use Index/index.volt
and in index.volt
it should
{% extends 'layout.volt' %}
{% block body %}
my content {{ some var }}
{% endblock %}
{% block css %}
<link rel="stylesheet/less" type="text/css" href="styles.less" />
{⅜ endblock %}
or for instance in BlogController createAction() it should use Blog/new.volt