Okay, I think I've come up with a solution...
You have the below files, for instance:
class.db.php
class.utility.php
class.validation.php
And you tie all of these together in class.framework.php:
<?php
require('class.db.php');
require('class.utility.php');
require('class.validation.php');
class framework
{
var $db;
var $utility;
var $validation;
}
$framework = new framework();
$framework->db = new db;
$framework->utility = new utility;
$framework->validation = new validation;
?>
So, now, you can now just include that class.framework.php in your mainfile and can access things like...
$framework->db->query("SELECT * FROM Table");
$framework->utility->add(1, 3);
$framework->validation->email("where@who.com");
If someone sees something inheritly wrong with that, let me know.