Symfony: Extending the original AppBundle template files

Viewed 290

I'm having a bundle Acme/Bundle/BlogBundle within this structure:

app/...
app/Resources/views/base.html.twig
bin/...
Acme/Bundle/BlogBundle/Resources/views/Default/blog.html.twig
src/...
src/AppBundle/...

Within the blog.html.twig I want to extend the base.html.twig off initially and automatically generated AppBundle.

This is my best guess:

{% extends '@AppBundle/base.html.twig' %}

{% block body %}
test
{% endblock body %}

I tried a few other syntaxes but none seem to work. So, how to you inter-reference template files with the ov AppBundle folder?

Docs (which didn't help me): http://symfony.com/doc/current/templating/namespaced_paths.html

1 Answers
Related