Yeah, but I'm trying to access a different object.
<?php
class System {
// Constructor
function System() {
// Load core libraries
require_once CORE_PATH."lib/debug.php" ;
require_once CORE_PATH."lib/skin.php" ;
require_once CORE_PATH."lib/error.php" ;
require_once CORE_PATH."lib/lang.php" ;
require_once CORE_PATH."lib/data.php" ;
// Create core objects
$Debug = new Debug ;
$Skin = new Skin ;
$Error = new Error ;
$Lang = new Lang ;
$Data = new Data ;
// Load configuration files
require_once CONFIG_PATH."onepowered_global.php" ;
require_once CONFIG_PATH."settings.php" ;
}
function Go() {
// Start debug if enabled
$Debug->Go() ;
$Debug->Go etc. won't run
Thanks for the help!