Embedding HTML in your PHP is one of the worst decisions you can make. Not only is it a pain to write, it's also a pain to maintain. If you use a fully-fledged framework like Laravel, then you don't have to worry about how HTML is generated. But if you're using bare-metal PHP, you should use a template engine.
In this Coffee Break Course, Envato Tuts+ instructor Jeremy McPeak will introduce you to Twig: a flexible, fast, and secure template engine for PHP. You'll get familiar with its easy-to-learn syntax as Jeremy shows you how to inherit templates and create content blocks.
1.Twig Template Engine for PHP2 lessons, 13:22
2 lessons, 13:22
1.1Introduction01:00
1.1
Introduction
01:00
1.2Twig Template Engine for PHP12:22
1.2
Twig Template Engine for PHP
12:22
I started my development career on the client-side writing JavaScript and DHTML components in my spare time. In 2005, Nicholas C. Zakas asked me to join him in writing the first edition of Professional Ajax for Wiley Publishing. Since Professional Ajax, 1st Edition, I've been blessed to take part in other book projects: Professional Ajax 2nd Edition, and Beginning JavaScript 3rd and 4th editions.