getConfig(); /** * Include Autoloader */ include APP_PATH . '/config/loader.php'; /** * Handle the request */ $application = new \Phalcon\Mvc\Application($di); //$request = new \Phalcon\Http\Request(); //$application->handle($request->getURI())->send(); $application->handle($_SERVER['REQUEST_URI'])->send(); } catch (\Exception $e) { echo $e->getMessage() . '
'; echo '
' . $e->getTraceAsString() . '
'; }