$registry->router = new v6_router(); $registry->router->setPath(__WEBSITE_ROOT_PATH . DS . 'controller'); } catch (Exception $e) { echo 'Caught exception trying to create router: ', $e->getMessage(), "\n"; v6_debug::log('Caught exception trying to create router: ', $e->getMessage()); } // now hand processing over to the controller... try { v6_debug::log('launching controller'); $registry->router->LaunchController(); } catch (Exception $e) { echo '<pre>' . var_export($e, true) . '</pre><br/><br/>'; v6_debug::log('Caught exception trying to launch controller: ', $e->getMessage()); echo 'Caught exception trying to launch controller: ', $e->getMessage(), "\n"; } v6_debug::log('Shutting down'); v6_debug::dump(); // 12/26/2014 - execution stops here. function __autoload($class_name) { // echo '__autoload: '. $class_name. '</br>'; $filename = strtolower($class_name) . '.class.php'; // part of the framework? $file = __IPINGA_CODE_PATH . DS . $filename; if (file_exists($file) == true) { include_once $file; return true; } // part of the application controllers? $file = __WEBSITE_ROOT_PATH . DS . 'controller' . DS . $filename; if (file_exists($file) == true) {