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 our latest Coffee Break Course, Twig Template Engine for PHP, 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.
Watch the introduction below to find out more.
You can take our new course straight away with a subscription to Envato Elements. For a single low monthly fee, you get access not only to this course, but also to our growing library of over 1,000 video courses and industry-leading eBooks on Envato Tuts+.
Plus you now get unlimited downloads from the huge Envato Elements library of 200,000+ photos and 26,000+ design assets and templates. Create with unique fonts, photos, graphics and templates, and deliver better projects faster.
And if you're looking for other ways to improve as a PHP developer, check out some of the super-useful PHP scripts available on Envato Market.
Envato Tuts+ tutorials are translated into other languages by our community members—you can be involved too!Translate this post