|
From: Geoff S. <Ge...@Ho...> - 2001-03-28 06:40:28
|
Check out http://www.txsd16democrats.org to see a phpWebsite that uses the table prefix technique to create a separate set of tables for an instance of phpwebsite. Note, there isn't much of any content or customization at the moment. The tables are named sd16_authors, etc. Here are a few concerns I have from digging into the code to get this working. 1. The current code is extremely inconsistent. (Although the new code is much better, it still suffers to some extent from items 2 and 3, below, because that's what was required to fit it into the existing system.) 2. The code doesn't seem to be segmented into files in a logical fashion. 3. Includes and globals seem to be used extensively instead of using parameters on function calls. 4. I'm not particularly happy about the way that HTML is embedded in the code. More on that another time. I'm especially concerned about item 3. The only way to avoid this kind of problem is to do a "real" design of the system. Perhaps, we can address these issues in our IRC meeting. Geoff Geoff Staples, Dallas, Texas 75219-4432 Hostricity Web Hosting <http://www.hostricity.com/> |