Why should I use templating system in PHP? [closed]

Yes, as you said, if you don’t force yourself to use a templating engine inside PHP ( the templating engine ) it becomes easy to slip and stop separating concerns.

However, the same people who have problems separating concerns end up generating HTML and feeding it to smarty, or executing PHP code in Smarty, so Smarty’s hardly solving your concern separation problem.

See also:

Leave a Comment