I have a view template that is currently FooBundle:Bar:baz.html.twig. However, since I have pretty many templates, I’d like to organize and put them in folders like Resources\Views\Bar\sub\baz.html.twig. I tried using FooBundle:Bar:sub:baz.html.twig without success.
Is there a way to put view files one more folder deeper?
You can use:
Where
FooBundlerefers to the bundle;Barrefers to the controller;sub/baz.html.twigis the path to file (from theResources/Views/Bar/folder);