selector.php
Go to the documentation of this file.00001 <?php
00025
00026 $cfg = FrameworkConfiguration::getInstance();
00027
00028
00029 $configAppIncludes = array(
00030 sprintf("class_%s", $cfg->readConfig('app_helper_class')),
00031 "config",
00032 "data",
00033 "init",
00034 "loader",
00035 "debug",
00036 "exceptions",
00037 "starter",
00038 );
00039
00040
00041 foreach ($configAppIncludes as $inc) {
00042
00043 if (($inc == "starter") && (defined('TEST'))) {
00044
00045 continue;
00046 }
00047
00048
00049 $fqfn = sprintf("%s%s/%s.php",
00050 $cfg->readConfig('application_path'),
00051 $cfg->readConfig('app_name'),
00052 $inc
00053 );
00054
00055
00056 if ((file_exists($fqfn)) && (is_file($fqfn)) && (is_readable($fqfn))) {
00057
00058 require_once($fqfn);
00059 } elseif ($cfg->readConfig('verbose_level') > 0) {
00060
00061 trigger_error(sprintf("Cannot load application script %s.php! File is missing or read-protected.",
00062 $inc
00063 ));
00064 }
00065 }
00066
00067
00068 ?>