I learned PHP OOP basics and to improve my knowledge of that, I am willing to create forum from scratch using OOP. So, can you give me a few tips you think I should know, what classes should I use and etc开发者_如何转开发 to improve my OOP knowledge as much as it possible. Thanks.
Maybe you should consider using PHP framework, preferably some that uses MVC (some of them are listed on that page). You will have to write new classes and also you'll see how the work is done in particular framework, which can certainly enhance your OOP knowledge.
As a bonus, many of these frameworks focuses on security issues so you will not have to worry about security of your web application. And after you learn how to use the framework, it should speed up your work.
In begining it is good to create Interfaces of Global Classes. They will help you in application development. A very good practice is a using a Abstract classes. Some Patterns can help you to. Singleton, Decorator, Factory is very comfort for all projects.
You might take a look at 'PHP and MySQL Web Development' by Luke Welling and Laura Thompson. Chapter 31 is titled 'Building Web Forums'. I haven't read this chapter, but I have read most of the book and found it pretty good.
精彩评论