thinkphp How to write social networking sites with object-oriented thinking? For example, what kinds of classes should renren write? I have no concept at all.
Reply to discussion (solution)
This thing is not a fixed class just a encapsulation of a class encapsulates some specific functionality, object-oriented is implemented through this encapsulation!
You have to say which classes must be used, it depends on your function!
I'll tell you a few!
1, the account management of the inside of the registration change password garbled seven bad function you can think of it stuffed into the inside
2, friends management .....
3, log Management album management and so on
Of course it doesn't have to be this way, it depends on what you think!
You can try to imitate the space below TX and you'll know.
Write a message board first
You look at the document, according to the document, to improve the function module, you write code, is object-oriented writing, as for the object-oriented thinking, you can look at the underlying logic package.
Class is the process of processing data you have to think about what features your site has, which pages are used to determine which classes to use
Start by moving bricks ... Tall buildings are not meant to be made of ideas.