Day 1

Day 1 - Today is the 29th of March 2017.

Topics covered today: Basic Twig concepts, Escaping and Twig Syntax.

I used Smarty 3.x for some Prestashop and personal projects but I want to study Twig and do the exam for the SensioLab Certification.

My first impression is positive (I already used Twig in some little projects in the last year): it's simple and very easy to understand. Twig is also the new PHP template engine used in Prestashop 1.7 along with Smarty.

The creator is Fabien Potencier, that had released Twig under the new BSD license.

Today I learnt some basic concepts:

I use Visual Studio Code as a code editor and it's extension. It's fast, open-source and very lightweight.

Twig 2.x requires PHP 7.0.0 to run. My Scotchbox VM has PHP 5.6, so I had to use to write some lines of code. It would have taken a lot of time to update it.