Structure of maintainable websites

This is a discussion on Structure of maintainable websites within the PHP General forums, part of the PHP Programming Forums category; Hello, I'm currently maintaining a website (I developed myself) for the Intranet of a public school. Among the usual ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-08-2007
Matheus Degiovani
 
Posts: n/a
Default Structure of maintainable websites

Hello,

I'm currently maintaining a website (I developed myself) for the
Intranet of a public school. Among the usual things (news, login system,
online grading) the web interface is also used for controlling the
server it resides on (which includes a few simple tasks such as
verifying the UPS load, adding users, editing a few conf files) and also
it is used for (actually, the main purpose of it)
enabling/restricting/disabling internet access to each of our computer labs.

The system started quite small (since it had to be built fast), but is
starting to grow to incorporate new features. Currently, each function
of the system is built in a different php file. It doesn't use any
template system, though all shared functions are stored in several files
in a /lib directory and imported in an as-needed basis. Some of the
libraries are third party, so some are strictly funcional, others are
Object-Oriented.

I have worked with a few CMSs in the past, indeed I even wrote plugins
for some, so I have *some* idea of application design in PHP. However,
I'd like a few pointers on how to make a good, solid infrastructure for
my code (possibly a complete redesign) which allows it to be easily
maintained by future analists. Would using Smarty be the best solution,
in this case? Personally, I wouldn't like to tie the system with any
existing CMS.

So, my question is: are there any good practices that I should be aware
of or example websites I can study, that will give me the knowledge I
need? I'm not looking for references on general software design
approaches, but practical information on how to apply them to PHP websites.

Thanks,
Matheus Degiovani.
Reply With Quote
  #2 (permalink)  
Old 10-09-2007
Richard Heyes
 
Posts: n/a
Default Re: [PHP] Structure of maintainable websites

> So, my question is: are there any good practices that I should be aware
> of or example websites I can study, that will give me the knowledge I
> need? I'm not looking for references on general software design
> approaches, but practical information on how to apply them to PHP websites.


You could do worse than looking at this:

http://www.phpguru.org/static/ApplicationStructure.html

Lots of people like to over complicate their structure, but this (I
find) usually suffices. Plus it's easy to navigate and interpret.

PS. Smarty has nothing to do with structure - it's got everything to do
with needlessly reducing performance.

--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:52 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0