SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist ashattuc's Avatar
    Join Date
    Aug 2002
    Location
    Boise, Idaho
    Posts
    411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A quick question about a design pattern

    Hello,

    What is the design pattern where you use a single file (eg. index.php) as a gateway for all of your pages? For instance, instead of having about-us.php, contact-us.php, you just have a single index.php, and all calls to pages in that directory get routed through it via an .htaccess file.

    I see some of the more popular programs using this kind of system, so it must be useful. Any thoughts on why it's a good approach would be helpful as well.

    Thanks!
    Chris
    Chris S.

    Free Web Scripts - Form generators, AJAX tools and more!
    Micro CMS - A totally free AJAX-based, SEO-ed CMS!

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i beleive you would call that a front controller design.

    may wanna ask this question in the application design forum.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •