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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -