fabpot/Twig — Issue #520: Extending template with same name in other bundle fails
Author: nahpeps
Created: 2011-11-17 11:11:37+00:00
State: open

I am extending the AcmeDemoBundle in Symfony2 with a TestBundle.

AcmeDemoBundle and TestBundle both contain a file: Demo/hello.html.twig

In TestBundle/Demo/hello.html.twig I like to extend AcmeDemoBundle/Demo/hello.html.twig
by using: {% extends "AcmeDemoBundle:Demo:hello.html.twig" %}

This kills the apache process with a segmantation fault.

If I instead render AcmeDemoBundle/Demo/hello2.html.twig (which extends AcmeDemoBudle:Demo:hello.html.twig) everything works like expected.

Problem: you can not extend a twig file that has the same name but lives in another bundle