From 9f7b6323ab233ec7d069c9a526f1b645cbae072c Mon Sep 17 00:00:00 2001 From: WouterJ Date: Thu, 10 Nov 2016 21:21:22 +0100 Subject: [PATCH] Made docs in sync with standard edition code --- quick_tour/the_big_picture.rst | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/quick_tour/the_big_picture.rst b/quick_tour/the_big_picture.rst index 4e1c44a1e14..4a8651fd48b 100644 --- a/quick_tour/the_big_picture.rst +++ b/quick_tour/the_big_picture.rst @@ -61,7 +61,9 @@ because that will be explained in the next section):: */ public function indexAction() { - return $this->render('default/index.html.twig'); + return $this->render('default/index.html.twig', [ + // ... + ]); } } @@ -79,8 +81,8 @@ just call other parts of the application to get or generate the needed information and then they render a template to show the results to the user. In this example, the ``index`` action is practically empty because it doesn't -need to call any other method. The action just renders a template with the -*Homepage* content. +need to call any other method. The action just renders a template to welcome +you to Symfony. Routing ~~~~~~~ @@ -103,7 +105,9 @@ at the three lines of code above the ``indexAction()`` method:: */ public function indexAction() { - return $this->render('default/index.html.twig'); + return $this->render('default/index.html.twig', [ + // ... + ]); } } @@ -136,7 +140,9 @@ Templates The only content of the ``index`` action is this PHP instruction:: - return $this->render('default/index.html.twig'); + return $this->render('default/index.html.twig', [ + // ... + ]); The ``$this->render()`` method is a convenient shortcut to render a template. Symfony provides some useful shortcuts to any controller extending from