Skip to content

Commit 4c3a0d0

Browse files
Krapjaviereguiluz
authored andcommitted
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 !
1 parent 66716ae commit 4c3a0d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

page_creation.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ random) number and prints it. To do that, create a "Controller class" and a
4545
"controller" method inside of it that will be executed when someone goes to
4646
``/lucky/number``::
4747

48+
<?php
4849
// src/AppBundle/Controller/LuckyController.php
4950
namespace AppBundle\Controller;
5051

0 commit comments

Comments
 (0)