PHP
  Home arrow PHP arrow Page 2 - Setting up the Foundation for an Extensible Website Engine with PHP 5
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Setting up the Foundation for an Extensible Website Engine with PHP 5
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 14
    2006-10-24


    Table of Contents:
  • Setting up the Foundation for an Extensible Website Engine with PHP 5
  • Defining the core structure of a simple yet dynamic website
  • Creating a simple template file
  • Defining the database schema with MySQL

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Setting up the Foundation for an Extensible Website Engine with PHP 5 - Defining the core structure of a simple yet dynamic website
    ( Page 2 of 4 )

    As I said right at the beginning of this article, the website engine that I plan to build will be based on the functionality provided by some PHP 5 classes, which will be reviewed later. For now, I'd like to commence by defining the general structure of the dynamic website itself to give you a good idea of how it will look.

    Basically, the skeleton of the sample website that I'll create will be comprised of the following sections: header, main navigation bar, left-placed column, center-placed column, right-placed column, and finally the usual footer section. Nothing unexpected, right?

    As you can see, the structure that I described before corresponds to a typical three-column web page layout, which is properly exemplified by the set of screen shots included below. Please, have a look at the first one, which shows not only the overall appearance of the sample website in question, but also depicts the appearance of a "Profile" page included within the site:

    As you'll realize, the above image reaffirms the concepts that I explained before. The layout of the sample website will be made up of a header, then three central columns, and finally a footer area.

    In this specific case, the previous picture shows the look and feel that corresponds to a hypothetical "Profile" page, but there are still some other pages that I'd like to you show you. Take a look at the following screen shot, which shows the visual appearance of a "Products" page:

    As you can see, the above image demonstrates the consistent look and feel of the sample website, and at the same time shows the basic appearance of a "Products" page. Of course, the overall visual presentation of the site can be significantly improved to fit your particular needs, but for the moment I decided to keep it simple. That will give you an accurate idea of how each section of this website will look, without having to mess up the overall development process too much.

    Al right, at this point you've hopefully grasped the key points of how to define the general structure of this sample website. So let me show you finally a few additional screen shots, aimed at demonstrating the look and feel of the eventual  "Services," "Customers" and "Contact" pages. Here is how they look:

    Okay, I think that the above screen shots are more than enough for demonstrating the core structure of the dynamic website that I plan to construct. As I mentioned before, each section of the site presents a consistent look, a fact that makes them very convenient to generate with a simple static template file.

    Speaking of the concrete template file that will be used in this tutorial, in the following section I'll show you its source code. Click on the link below and keep reading to learn how this will be achieved.



     
     
    >>> More PHP Articles          >>> More By Alejandro Gervasio
     

       

    PHP ARTICLES

    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...
    - Method Chaining in PHP 5
    - The Role of Interfaces in Applying the Depen...
    - Dependency Injection: Using a Setter Method ...
    - Using a Model Class with the Dependency Inje...
    - Injecting Objects Using Setter Methods with ...
    - Injecting Objects by Constructor with the De...
    - The Dependency Injection Design Pattern in P...
    - Performing Inferential Statistical Analysis ...
    - Performing Descriptive Statistical Analysis ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    Stay green...Green IT