Hacker News new | ask | show | jobs
by Kudos 4688 days ago
> Why layer an additional templating language (Smarty, etc) on top of PHP - incurring extra processing and parsing - when PHP is a perfectly capable templating language itself?

From past experience: to stop shittier developers at your company putting controller logic in the templates. Using something that does nothing but templating ensures that your templates do nothing but present data.

1 comments

I addressed that in my post actually. If you have shitty developers in your company who can't follow business rules, PHP isn't your problem.