Thread: Php?
View Single Post
  #14  
Old 12-20-2008, 05:04 PM
atholon is offline atholon
"ath-hole"

Join Date: Jan 2003
Location: Failville.
Posts: 11,357

Send a message via MSN to atholon
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.
__________________
Reply With Quote