PHP Mini Sites Cms: template system and rewrite rules

In this fourth post we’ll have to actually do something useful with our code. Simply add the following at the end of the previous script.

if($found)
{// set up variables with content
$title=$items[0];
$url=$items[1];
$post=$items[2];
$tags=$items[3];
$description=$items[4];
$author=$items[5];
$date=$items[6];
}

else

{ // if we get here there was a 404 error either for malformed url or because we couldn’t…………….

Read PHP Mini Sites Cms: template system and rewrite rules »