From ed6968d95f466e4aba8f47267fe3c698fa2ab413 Mon Sep 17 00:00:00 2001 From: Krap Date: Wed, 13 Mar 2019 19:55:35 +0100 Subject: [PATCH] Added php opening tag to sample controller It took me a while to figure out why the sample didn't seem to work, despite being experimented in php ; i checked many times namespace, uses and class declaration before finding that i just missed the opening tag. Think it would help others (even more if unexperimented) discovering symfony by copy/pasting sample code from the doc ! --- page_creation.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/page_creation.rst b/page_creation.rst index 5344d48350c..bf97528d061 100644 --- a/page_creation.rst +++ b/page_creation.rst @@ -44,6 +44,7 @@ Suppose you want to create a page - ``/lucky/number`` - that generates a lucky ( random) number and prints it. To do that, create a "Controller class" and a "controller" method inside of it:: +