I'm working on a Symfony site, v 2.8.3. I have controllers and twig files all set up.
Every page I go to I get the default welcome screen.
The Symfony profiler shows the correct twig file but doesn't render it.
Any suggestions?
In DefaultController.php
/**
* @Route("/")
* @Template()
*/
public function indexAction()
{
}
base.html.twig
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{% block title %}Welcome!{% endblock %}</title>
{% block stylesheets %}{% endblock %}
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
</head>
<body>
{% block body %}{% endblock %}
{% block javascripts %}{% endblock %}
</body>
index.html.twig
{% extends '::base.html.twig' %}
{% block body_container_main_content %}
indexAction
is doing nothing, did you forget some code inside ? – Jérôme