Location: PHPKode > projects > Thought Push PHP Framework > system/preloading/preloader.php
<?
/// logic unrelated to a specific request
/** @file */

#Tool, used by config
require_once $config['systemLocation'].'/system/utilities/general/Tool.php';

#Config setting
require_once $config['systemLocation'].'/system/utilities/system/Config.php';
Config::$x = $config;
Config::get();

#Autoloader
require_once Config::$x['systemFolder'].'utilities/system/Autoloader.php';
$autoloader = new Autoloader;
spl_autoload_register(array($autoloader,'load'));

set_error_handler(Config::$x['errorHandler'],Config::$x['errorsLogged']);

/*- load custom preload for various reasons:
	- defining custom error handler based on env mode
	- adding more autoloading functionality
*/
Config::loadUserFiles(Config::$x['preloaders'],'preloading');

#pre session request handling; for file serving and such.
require_once Config::$x['systemFolder'].'requestHandling/RequestHandler.php';
RequestHandler::handle();
Return current item: Thought Push PHP Framework