*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
$configAppIncludes = array(
sprintf("class_%s", $cfg->readConfig('app_helper_class')), // The ApplicationHelper class
"config", // The application's own configuration
+ "data", // Application data
"init", // The application initializer
"loader", // The application's class loader
"debug", // Some debugging stuff
}
// Generate a FQFN for the helper class
- $fqfn = sprintf("%s%s/%s/%s%s",
- PATH,
+ $fqfn = sprintf("%s%s/%s.php",
$cfg->readConfig('application_path'),
$cfg->readConfig('app_name'),
- $inc,
- $cfg->readConfig('php_extension')
+ $inc
);
// Does the include file exists?
require_once($fqfn);
} elseif ($cfg->readConfig('verbose_level') > 0) {
// File is missing
- trigger_error(sprintf("Cannot load application script %s! File is missing or read-protected.",
- $inc . $cfg->readConfig('php_extension')
+ trigger_error(sprintf("Cannot load application script %s.php! File is missing or read-protected.",
+ $inc
));
}
}