diff --git a/page_creation.rst b/page_creation.rst index 8977890e3d2..14af4f20f51 100644 --- a/page_creation.rst +++ b/page_creation.rst @@ -94,7 +94,10 @@ If you're returning HTML from your controller, you'll probably want to render a template. Fortunately, Symfony comes with `Twig`_: a templating language that's easy, powerful and actually quite fun. -First, make sure that ``LuckyController`` extends Symfony's base +First, import the Symfony's base +:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller` class as shown +in line 5 below. Then, make sure that ``LuckyController`` extends from it:: + :class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller` class:: // src/AppBundle/Controller/LuckyController.php