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?