I have a ton of php files that use queries, some are classes and some are just pages with functons.
The way I have it set up right now is like this:
index.php
news/index.php
tutorials/index.php
reviews/index.php
Is that a good way to do it or should I all make it part of a single index.php file?
I want the news index to be a class file along with all the other ones lke the tutorial index and reviews but I am not sure how to set it up.
I was thinking of using an array index like in SMF's index. Then it would just create the right object when an "action" is met. Like
http://digitalhelpfiles.com/index.php?view=news etc..
Any ideas? Hope that makes sense.