Skip to content

Commit 6b20ee8

Browse files
committed
minor #11151 Added php opening tag to sample controller (Krap)
This PR was submitted for the 4.2 branch but it was merged into the 3.4 branch instead (closes #11151). Discussion ---------- 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 ! <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 4c3a0d0 Added php opening tag to sample controller
2 parents 66716ae + 4c3a0d0 commit 6b20ee8

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)