TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Do you use a template engine in PHP?

1 pointsby wocpover 11 years ago
Well I&#x27;m building an application in PHP without a framework, and I found out Haanga (haanga.org).<p>It is a template engine for PHP, like Django, its cache system is pretty good and Menéame (meneame.net, which has a lot of traffic) has been using for a long time.<p>I think that using Haanga may help me to be more organized.<p>What do you think?<p>Thanks in advance.

4 comments

jaachanover 11 years ago
Whenever I try to use a template engine, I end up putting too much view logic in the controller. So we just use PHP files (with the .phtml extension so you know what&#x27;s up). It&#x27;s the default way for the Zend Framework.
jtreminioover 11 years ago
Haanga hasn&#x27;t been touched in 7 months.<p>Check out Twig: <a href="http://twig.sensiolabs.org" rel="nofollow">http:&#x2F;&#x2F;twig.sensiolabs.org</a>
评论 #6965404 未加载
kutarinover 11 years ago
Twig is good for me. it like Django template engine.<p>I think Twig is major template engine in PHP.
评论 #6965448 未加载
enigmabombover 11 years ago
I use Blade inside of Laravel. Very light weight.