symfony - Twig template inheritance from bundle folder -


i'm using template inheritates template base template it's on mybundle/view folder (like child template) not found ,only works if base template on app/resource/views folder

{% extends 'src/userbundle/resources/views/user/base1.html.twig' %} {% block body %}   <ul id="navigation">       {% user in users %}           <li>{{ user.getusername }}</li>       {% endfor %}   </ul> {% endblock %} 

works

{% base1.html.twig' %} //looks base1 on app/resources/views 

it's mandatory place base templates on app/resouces/views or can place in mybundle/resources/views?

if super template in bundle have extend this:

{% extends 'userbundle:user:base1.html.twig' %} 

Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -