symfony - How can I load templates from subdirectories in Symfony2? -


i wanna replace form widget, created file projectcorebundle:form:fields.html.twig changes ... now, how can create subdirectory in bundle/resources/views/form folder, use this: projectcorebundle:form:admin:fields.html.twig (because use corebundle 'admin' , 'frontend', , separate these form customizations)

you can load templates subdirectories view syntax:

projectcorebundle:form:admin/fields.html.twig 

or

projectcorebundle:form/admin:fields.html.twig 

or

projectcorebundle::form/admin/fields.html.twig 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -