A simple PHP development framework that works similariy to Jekyll
Start your server and navigate to the url /dbCreate.php
to add in mysql database information
Create pages in the database in the URLS table
If the FILE field is not filled out, the program will try to access the data for that pages name in the CONTENT table.
You will be able to access the data by typing in:
//contentExists() will parse for the data so if the content data is not used in the page, it will not try to load it
if($site->contentExists())
{
echo excerpt($site->content["about"]);
}
You reference any page data from any page.
You can also declare data as JSON in the SITE table.
Each variable will be able to be access via
//dataExists() will load the data for the site, if it is not used then it is not loaded
if($site->dataExists())
echo $site->data->title;
If a user tries to access a url that is not in the URLS table, it will be redirected to the 404 page.
A good use for the REDIRECT_URL field is to redirect people to an underconstruction page while the page you work on is being updated.
##Templating You can add a template for all pages, not includes, by providing
$_layout = "default";
somewhere on the page. You can also provide a $_title parameter as well. Any other variables that you want to carry over to the next template will need to be declared as follows
$_parm = '{ "title": "Home Page" }';
These can then be referenced at on any template you add as well as in any includes you have.
echo $page->parm->title;
Templates can be nested. Example, you can have your page use a page template, which uses the default template.
##Additional This runs on PHP 5 This also needs the Apache2 Mod_rewrite module as well as htaccess files enabled.