In addition to this answer (by the way, right). You must add the suffix ".html.twig" if you use the TWIG mechanism to render templates.
Your image should look like this:
public function showAction() { ... bla bla bla ... more bla bla }
In this case, you force showAction () to use a custom template. If @Template () is empty, your showAction () will search for the appropriate template by convention.
Hope this helps. If not, it will only βdecorateβ a little more answer.
source share