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" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -