Project Cerbera 2.0 (30th January 2007)
Towards the start of this month I began making this site easier to maintain. It is currently a collection of over 200 static HTML files which means repeated things are included in every page:
- Everything in
- Page header.
- Main navigation.
Since I’m not ready to create a database driven system I’ve settled on using PHP’s
require_once() commands. Each file now looks like this:
<?php define('PAGE_TITLE', '<title>, last breadcrumb and <h1> text'); require_once $_SERVER['DOCUMENT_ROOT'] . 'includes/start.inc.php'; ?> <p>Main content. <?php include_once $_SERVER['DOCUMENT_ROOT'] . 'includes/end.inc.php'; ?>
In this way, each file only contains the unique parts. I’ve also revisiting the rather hurried information architecture of some areas.
You can preview my progress with the new system in the development area.