Browsing Tag

Controller

Blog

Getting started with Symfony 4: Response and View

February 27, 2019
Symfony Response and Twig

In the previous article, I have already covered what Route and a Controller is, and how to use them inside Symfony.

As I already explained, the Controller is a function we write to handle request that comes into a Symfony and return a response. As a response you can render a template or even turn objects into JSON for an API.

Continue Reading