Archive for the ‘Template engine’ Category

Twig – the Most Popular Stand-Alone PHP Template Engine

Posted on: No Comments
Twig is a template engine for PHP. But isn't PHP itself a template engine? Yes and no! Even though PHP started as a template engine, it didn't evolve like one, and while we can still use it as one please tell me which version of "Hello world" you prefe...

Quick Tip: Convenience Hacks for Passing Data to Views

Posted on: No Comments
In MVC based architectures, working with template engines is an inevitable part of the development routine. It usually goes like this: we prepare and pass the data to the view. In the view, we print them based on our layout design. Here is a basic exa...

Transphporm – a Different Kind of Template Engine

Posted on: No Comments
If there is one thing the world needs, it’s definitely another PHP template engine! But wait, this one is different! Many PHP template engines (Smarty, Blade, Twig…) are little more than abstracted PHP code, making it easier to write loops, if/then...