Skip to content
Enter Search Term
Simple PHP Template Class
As a follow up to my earlier post, I wanted to show how to greatly improve the usefulness of the function by changing it to a class with distinct methods, and in the process reduce the previous approach's shortcomings.
How to Create a Simple PHP Templating Function
Sometimes you find yourself needing to write a very simple php template function. Maybe you're working on a very simple script, or in a CMS that doesn't provide much in the way of template organization or overriding.