We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15595cd + bcccdc0 commit 792bf52Copy full SHA for 792bf52
book/controller.rst
@@ -521,6 +521,15 @@ The Symfony templating engine is explained in great detail in the
521
$templating = $this->get('templating');
522
$content = $templating->render('AcmeHelloBundle:Hello:index.html.twig', array('name' => $name));
523
524
+.. note::
525
+
526
+ It is possible to render templates in deeper subdirectories as well, however
527
+ be careful to avoid the pitfall of making your directory structure unduly
528
+ elaborate::
529
530
+ $templating->render('AcmeHelloBundle:Hello/Greetings:index.html.twig', array('name' => $name));
531
+ // index.html.twig found in Resources/views/Hello/Greetings is rendered.
532
533
.. index::
534
single: Controller; Accessing services
535
0 commit comments