require_once BASEPATH . 'config/config' . EXT;
if (!isset($config) or !is_array($config)) {
    show_error('Your config file does not appear to be formatted correctly.');
}
/*
|------------------------------------------------
| Determine the routing
|------------------------------------------------
|
| The Router class will parse the URI and the
| routing matrix to determine what app controller
| should be loaded.
|
*/
require_once BASEPATH . 'libraries/Router' . EXT;
$RTR = new _Router();
$RTR->fetch_routing($uri_protocol);
/*
|------------------------------------------------
| Load the Output Class
|------------------------------------------------
|
| We do this now only in case there is a cached
| web page to show.  Normally the output class
| isn't needed until the end of system execution,
| but if there is a cache we'll need it next
|
*/
require_once BASEPATH . 'libraries/Output' . EXT;
$OUT = new _Output();
/*
    show_error('Your config file does not appear to be formatted correctly.');
}
require_once BASEPATH . 'libraries/Config' . EXT;
$CFG = new _Config();
/*
|------------------------------------------------
| Determine the routing
|------------------------------------------------
|
| The Router class will parse the URI and the
| routing matrix to determine which app controller
| should be loaded.
|
*/
require_once BASEPATH . 'libraries/Router' . EXT;
$RTR = new _Router($CFG->item('uri_protocol'));
/*
|------------------------------------------------
| Load the Output Class
|------------------------------------------------
|
| We do this now only in case there is a cached
| web page to show.  Normally the output class
| isn't needed until the end of system execution,
| but if there is a cache we'll need it next
|
*/
require_once BASEPATH . 'libraries/Output' . EXT;
$OUT = new _Output();
/*
|------------------------------------------------