Charming Development in Symfony 5
Twig ❤️
  Unlock this challenge
Login Register

Challenge 1 / 3

Suppose we have a basic controller that extends Symfony\Bundle\FrameworkBundle\Controller\AbstractController. In it, there's an action that renders a template:

class PizzaController extends AbstractController
{
    /**
     * @Route("/pizza/order")
     */
    public function orderPizza()
    {
        return $this->render('pizza/order.html.twig');
    }
}

In this case, what does $this->render() return?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.