I wanted to share two tutorials this morning that were submitted by Brian Lozier off of his personal site. These two articles deal with templating in PHP, and an introduction to "object oriented thinking".
The first article, talking about templating, suggests a templating system that has PHP as it's native scripting language. While this in itself isn't unique, it is a good place to start for someone wanting to roll their own system (that is, if you need anything more than just an include at the top and bottom of your page). It's an interesting piece, and takes some good stands on why templating systems aren't such a "Bad Thing".
The second article starts off assuming that you're at least familiar with PHP - enough to get started working with objects and classes. It introduces you to objects, classes, has some sample classes for you to mess with, and some good examples of how to use these classes. This article is much more than your average "car analogy" tutorial that so many seem to have (*cough*) when it comes to classes, and gives you some great OOP programming tips and ideas to get you started. I'd recommend this article to anyone that's wanting to get started in OOP, but just hasn't found the right place....




