From 11d57768243298c3c2491cbc861002d7c3e946f6 Mon Sep 17 00:00:00 2001 From: Franz Holzinger Date: Tue, 10 Feb 2015 10:26:54 +0100 Subject: [PATCH 1/2] Missing parameter $name "function indexAction()" misses the parameter $name. This is needed because it is forwarded afterwards. "function indexAction($name)" --- quick_tour/the_controller.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quick_tour/the_controller.rst b/quick_tour/the_controller.rst index 114b2e587b3..0e1e17e3c7d 100644 --- a/quick_tour/the_controller.rst +++ b/quick_tour/the_controller.rst @@ -202,7 +202,7 @@ different controller using the ``forward()`` method:: /** * @Route("/", name="homepage") */ - public function indexAction() + public function indexAction($name) { return $this->forward('AppBundle:Blog:index', array( 'name' => $name From 687be494698054acfe308b6d63514cf29d71ddd0 Mon Sep 17 00:00:00 2001 From: Franz Holzinger Date: Tue, 10 Feb 2015 10:33:25 +0100 Subject: [PATCH 2/2] closing ')' is missed --- quick_tour/the_controller.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quick_tour/the_controller.rst b/quick_tour/the_controller.rst index 0e1e17e3c7d..db4b209bd5a 100644 --- a/quick_tour/the_controller.rst +++ b/quick_tour/the_controller.rst @@ -205,7 +205,8 @@ different controller using the ``forward()`` method:: public function indexAction($name) { return $this->forward('AppBundle:Blog:index', array( - 'name' => $name + 'name' => $name + ) ); } }