* Determines the correct absolute path for all includes only once per run.
* Other calls of this method are being "cached". This is done by checking
* a small list of common paths where the framework can reside and check if
- * inc/config.php can be found.
+ * framework/config.php can be found.
*
* @return $corePath Base path (core) for all includes
*/
continue;
} // END - if
- // First create full-qualified file name (FQFN) to inc/config.php
+ // First create full-qualified file name (FQFN) to framework/config.php
$fqfn = sprintf(
- '%s%sinc%sconfig.php',
+ '%s%sframework%sconfig.php',
$realPath,
DIRECTORY_SEPARATOR,
DIRECTORY_SEPARATOR,
* @return void
*/
public static final function main () {
- // Load config file, this provides $cfg
- require(self::detectCorePath() . '/inc/config.php');
+ // Load config file, this no longer provides $cfg
+ require(self::detectCorePath() . '/framework/config.php');
// Get a new configuration instance
$cfg = FrameworkConfiguration::getSelfInstance();
// Load bootstrap class
- require($cfg->getConfigEntry('base_path') . 'inc/bootstrap/class_BootstrapFramework.php');
+ require($cfg->getConfigEntry('base_path') . 'framework/bootstrap/class_BootstrapFramework.php');
// ----- Below is deprecated -----
// Load all include files
- require($cfg->getConfigEntry('base_path') . 'inc/includes.php');
+ require($cfg->getConfigEntry('base_path') . 'framework/includes.php');
// Include the application selector
- require($cfg->getConfigEntry('base_path') . 'inc/selector.php');
+ require($cfg->getConfigEntry('base_path') . 'framework/selector.php');
}
}