Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fastest PHP template engine (or framework) supporting inheritance for multiple sites

I need to find a template engine and/or a framework in PHP that lets me publish a website with one template, and reuse the template on other websites on the same server by making a child template, where I only override certain design elements from the parent template.

What I am looking for is speed of deployment - which template engine (PHP required) can I use to get the additional sites out there, the fastest?

As an example, I have websites to launch for various markets, in different categories. So I would create a UK site template that is the master template, then override details like the logo and static texts for the Swedish and French markets. Additionally, for different categories (such as Men's Fashion vs. Women's Fashion) I would need to override the images and colors of certain design elements (like pictures on the front page, and so on).

All of the sites I need to launch are based on the same API (RESTful JSON), and I need to be able to easily integrate a form for searching, sorting and filtering - so the template engine would have to allow for easy integration with variables...

Which solution would you suggest fit these requirements?

like image 937
Calle Avatar asked Apr 20 '26 11:04

Calle


2 Answers

You could also look at Twig. Here is some more info on it and how it compares to the others: http://fabien.potencier.org/article/34/templating-engines-in-php

like image 147
Sandeep Shetty Avatar answered Apr 22 '26 23:04

Sandeep Shetty


Simple -> Symfony

Uses a very simple templating engine - and easy to learn as their documentation is so amazing

like image 44
Manse Avatar answered Apr 22 '26 23:04

Manse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!