With all of the templating systems out there for PHP, you might find one that fits your needs perfectly. Then again, you might not. So, on order to help you build a good base to make a custom templating system of your own on, Codewalkers.com is here with a new posting to help.
In Writing a Template System in PHP, the author starts of very basic, showing you the fundamental implementation of the class and a code sample of the ultimate goal. The template file itself consists of HTML and special tags to show where the content should be placed. This is then taken and parsed through a class and outputed as a complete HTML file thanks to a handy replace_tags function that adds the content. And, of course, they wrap it all up with the completed example, showing not only the code from the beginning, but the completed class as well.
Tutorials like this can help those out there looking for a good place to start, but it makes me wonder how far away from this a user could get if they suddenly feel the need to define custom functions for every bit of information. The result could still be something as bulky and bug-ridden as some of the other major templating systems out there today.




