Re: PHP includes structure

by Kevin Waterson <kevin(at)oceania.net>

 Date:  Tue, 31 Dec 2002 07:51:39 +1100
 To:  hwg-techniques(at)hwg.org
 References:  westworlds
  todo: View Thread, Original
This one time, at band camp,
"Davies, Elizabeth H." <EHDavies(at)West.com> wrote:


 
> Splitting a site into it's objects allows for greater speed, easier troubleshooting, and all around ease of change. 

This is quite true, but can still be done with the use of a single page
to call various modules. We like to keep our code and html seperate.
So we use templates to do this, We can have a single page called
index.php and from there call various modules in the fashion of
index.php?mod=news to call the news module, then to call the show_news
method we simply call index.php?mod=news&method=show_news
The various modules written in eg PHP use the template as its
display base.

This allows us to keep style and content seperated and keeps the site
modular, so it is trivial to add or remove modules. This also keeps the
web designers happy as they have full control over the look/feel of the 
site.

Kind regards
Kevin

-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
Kevin Waterson
Port Macquarie, Australia

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA