Hi there. I am programming a helpdesk application in PHP and they way I was going about it was to make all my class files, and then treat the index file as the Main class (in java terms). The reason for this is to keep people out of the class files. and then the actions are passed to the index file through GET variables as so…
index.php?object=user&action=new
Can anyone tell me the problems I might face doing things this way? is there a better way I should be doing things? Although there are tons of tutorials on OOP usuing PHP, none give you the “proper” way to structure he code, or even suggest ways to do it. (none that I have seen anyway).