From 48b5e0a8e64cb718d9c11de93e1fe293ed54b4df Mon Sep 17 00:00:00 2001 From: Jan Dorsman Date: Sun, 22 Feb 2015 12:40:17 +0100 Subject: [PATCH] Update the_controller.rst Fixed some things: * Add missing closing parenthesis * Use the DefaultController helloAction as forward example instead The latter is to match the rest of the documentation page. The blog controller is not even made yet at this point in the tutorial, so there is no sense in trying to forward there. --- quick_tour/the_controller.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/quick_tour/the_controller.rst b/quick_tour/the_controller.rst index 114b2e587b3..a98ff0e97f6 100644 --- a/quick_tour/the_controller.rst +++ b/quick_tour/the_controller.rst @@ -204,9 +204,10 @@ different controller using the ``forward()`` method:: */ public function indexAction() { - return $this->forward('AppBundle:Blog:index', array( - 'name' => $name - ); + return $this->forward('AppBundle:Default:hello', array( + 'name' => 'Fabien', + '_format' => 'html' + )); } }