*
* @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.shipsimu.org
*
// Load all classes for the application
foreach (self::$frameworkPaths as $class) {
- // Try to load the application classes
- ClassLoader::getSelfInstance()->scanClassPath(sprintf('%s/%s/%s', $cfg->getConfigEntry('application_path'), $cfg->getConfigEntry('app_name'), $class));
+ // Create path name
+ $path = sprintf('%s/%s/%s', $cfg->getConfigEntry('application_path'), $cfg->getConfigEntry('app_name'), $class);
+
+ // Is the path readable?
+ if (is_dir($path)) {
+ // Try to load the application classes
+ ClassLoader::getSelfInstance()->scanClassPath($path);
+ } // END - if
} // END - foreach
}
array_push($ignoreList, '.');
array_push($ignoreList, '..');
array_push($ignoreList, '.htaccess');
- array_push($ignoreList, '.svn');
// Keep it in class for later usage
$this->ignoreList = $ignoreList;
// If the basePath is FALSE it is invalid
if ($basePath2 === FALSE) {
/* @todo: Do not die here. */
- exit(__METHOD__ . ':Cannot read ' . $basePath . ' !');
+ exit(__METHOD__ . ':Cannot read ' . $basePath . ' !' . PHP_EOL);
} else {
// Set base path
$basePath = $basePath2;