|
Ok, I have a good understanding of OOP PHP. I understand abstract classes and subclasses and inheritance, etc, etc...
I've read through books and tutorials and after all this, I can only program a site if I want abstract Animal classes and subclasses full of Dogs and Cats that can eatFood() and poopInGrass().
After some exhaustive searches, I cannot find actual real life examples of how to setup a site using OOP. I can take guesses on how to start but if I wanted to program a site where I post topics and users post comments (to make it easy, like a blog). How do I start this?
Do I have one class named site_posts() and functions within this to save new posts, display all posts and get specific posts? Then I use a page that includes a header and footer along with site_posts class and call the displayAllPosts function?
This piece seems missing from tutorials and online videos and books from the library. Does anyone know wheres the place to start?
Thanks!
__________________
Thanks
Stephen
|