Skip to content

Commit d89d2b2

Browse files
committed
added the step to include "use Symfony\Bundle\FrameworkBundle\Controller\Controller;"
before Lucky Controller extends the base controller class. This was mentioned in the code but could easily have been missed as a step. I missed that and didn't realize it was a new line in the code. I think the necessary Framework bundles should all have been listed.
1 parent 9e9f28e commit d89d2b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

page_creation.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ If you're returning HTML from your controller, you'll probably want to render
9494
a template. Fortunately, Symfony comes with `Twig`_: a templating language that's
9595
easy, powerful and actually quite fun.
9696

97-
First, make sure that ``LuckyController`` extends Symfony's base
97+
First, include the Symfony controller class as shown in line 5 below then,
98+
make sure that ``LuckyController`` extends Symfony's base
99+
:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller` class::
100+
98101
:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller` class::
99102

100103
// src/AppBundle/Controller/LuckyController.php

0 commit comments

Comments
 (0)