Hello
I'm creating a kind of massive network for users to register and login. I want to try using classes, but I've never used them (expect some mysql-wrappers etc). Could you provide some tips and sample-structure for my project?
The idea is to simply have a index.php, which prints the whole page and does all the action. Index.php calls functions from classes inside other files.
I need:
- user-class for checking if logged in and retrieving user-info
- different kind of "page"-classes for functions needed in those pages
I'm not asking for full code, but just a start. I don't know, how to use public function
s or anything like that. How to wrap these classes to work together? So no functions, just the structure!
Martti Laine