A simple framework for creating a multi-page website with the same layout between pages.
To create a new page
Modify the index.php file in the root directory to set up the mapping from pages to scripts
To do this, use
frameworkAddPage(SCRIPT_PATH, PAGE_PATH). This command looks for the script and will run it when the PAGE_PATH is visited.
Add your script to the pages directory. For a script to output content, it needs to implement
frameworkGetContent()These functions simply return the output necessary for the sidebar and content elements.
Reference your page using a link of the form
index.php?page=PAGE_PATH. You can reference this in your html and it will function like visiting the SCRIPT_PATH.
Note: for ajax pages, it is recommended that you call the scripts directly rather than through the framework