Browsing Tag

twig

Blog

Getting started with Symfony 4: View and Twig

March 3, 2019
Symfony View and Twig

As already discussed, learning Symfony is to learn installing and using powerful tools. I have introduced you to one of such tools, called Twig. In this article, I will cover more about twig and benefits of using such template engine. Unless you are building an API, twig will help you to deal with templates a lot easier.

Twig is a modern template engine for PHP

Continue Reading

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