Quick search:

0. Empty application

This is rather a template then an example: an empty application.

It shows what you need to start building a new application from scratch:
  • an application classFolder, here 'emptyapp' (in the classes folder, it is empty),
  • an application folder, here 'emptyapp', holding the following:
    • a file 'skinIndex.php' with the content for the MainPart of the IndexPage 
    • a file 'skinSubmenu.php' to hold the application menu items (empty)
    • an index.php script that instantiates site with the name of the application folder as its argument:
      include ("../classes/classSite.php");
      $site = new Site('emptyapp');
      $site->handleRequest();
  • an item in the file 'skinMenuPart.php' in the 'includes' folder that consist of:
    • a hyperlink to the application folder, naming the application in its content
    • a call to $this->printSubmenu with the name of the application folder as its argument
click here to try out the empty application on the phpPeanuts website.