Hi
I've been using/learning PHP for about 4 years now on a casual basis for building a website for my business. I'm just about to start an overhaul of the code because I find it a bit cumbersome trying to add features or amend the logic.
I had the chance to see code written by a more experienced programmer and found that they were using classes for the majority of their work. So they had a "Page" class with title, metatags, description, content etc.
I wondered if I should adopt this approach - is it OOP? Is there any obvious benefits?
Any suggestions on how to decide what becomes a "class"? ie my site will include tutorials for my customers, could I create a "Tutorial" class?
Can anyone point me towards suitable articles on this subject? I am writing my own CMS for this, as well as a host of other features.
Many Thanks
Rich