PHP Classes
Icontem

Class: PageLogic


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend!
      Classes of Mark Quah  >  PageLogic  >  Download  >  Support forum Support forum  >  RSS 1.0 feed RSS 2.0 feed Latest changes  >  Stumble It! Stumble It!  >  Bookmark in del.icio.us Bookmark in del.icio.us  
  Supplied by   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Related links   Files Files  
  • Supplied by:

    Picture of Mark Quah
    Name: Mark Quah <e-mail contact>
    Published packages: 7
    Country: Singapore Singapore - PHP jobs in Singapore
    Home page: ???
    Age: ???
    All time rank: 148
    Week rank: 1322

    Browse this author's classes

  • Groups:

    Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes
  • Detailed description:

    I have written modules for webservers with so many php/html files that I lost track, so I come out with this simple module to simplify the logic among pages.

    Imagine my module is a book, with many chapter inside.

    -- The book is the main page, normally index.html or index.php.
    -- The module comprises of many files, each file performs some functions.

    Thus file is equivalent to a chapter.
    -- Each file may contain several functions. This are the sections in the
    chapter.

    Imagine if I can say goto this book, this chapter and this section. I will need a content page to look up the pages. Thus the idea is formed.

    The content pages is stored in an .ini format and read in using my INIPARSER class. It will be in the form:

    [<LOGIC NAME>]
    <action>=<php function name>
    <action>=<php function name>, <file name>
    <action>=<php function name>, <file name>, <file name 2> ...

    If I hit the page with the action text embedded through
    index.php?action="..."
    or
    <input type=hidden NAME="action" VALUE="...">

    The index.php will just call up the function I want.

    I hope that this will help to modularize your php codes as well.
  • User ratings:

    Not yet rated by the users
  • Applications that use this class:

    No application links were specified for this class.
    Add link image If you know an application of this package, send a message to the author to add a link here.
  • Related links:

    Link Description
    INIParser Class You need this
  • Files:

    File Role Description
    Plain text file class_pagelogic.php Class Create interlinking web pages with index from an .ini file.
    Plain text file ONEFILE_SAMPLE.PHP Example Display different html pages using one single file.
    Plain text file README.TXT Doc. Explanation about PageLogic
    Download all files: pagelogic.tar.gz pagelogic.zip
    NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2008 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products