application; // Initialise the application $application->initialise(); // Route the URL: parses the URL through routing rules, replacing the data in the app's input $application->route(); // Dispatch the application $application->dispatch(); // Render the output $application->render(); // Persist messages if they exist. if (count($application->messageQueue)) { $application->getContainer()->segment->setFlash('application_queue', $this->messageQueue); } $application->getContainer()->session->commit(); if (defined('AKEEBA_SOLOWP_OBFLAG')) { @ob_start(); } } catch (Exception $exc) { $filename = null; if (isset($application)) { if ($application instanceof \Awf\Application\Application) { $template = $application->getTemplate(); if (file_exists(APATH_THEMES . '/' . $template . '/error.php')) { $filename = APATH_THEMES . '/' . $template . '/error.php'; } } } if (is_null($filename)) { die($exc->getMessage()); } include $filename; }