symfony - symfony2 twig render nesting sub directories -


i seem having problems twig render nesting

to explain further have following view layout structure

resources   .. config   .. public   .. etc   .. views     .. weekbreakdown       ..  export           .. export.html.twig           .. other.html.twig       .. index.html.twig       .. other.html.twig 

now can render following without error

$this->render('namebundle:weekbreakdown:index.html.twig'); 

or

$this->render('namebundle:weekbreakdown:other.html.twig'); 

what having trouble rendering export path.

i have tried

$this->render('namebundle:weekbreakdown:export:index.html.twig'); 

and also..

$this->render('namebundle:weekbreakdown:export\index.html.twig'); 

i invalidargumentexception: unable find template

this should work

$this->render('namebundle:weekbreakdown/export:index.html.twig'); 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -