null Core_Core::run( )
protected static function run()
{
if (IS_CLI || IS_SYSTEM_MODE)
{
Core::execute(Core::$path_info);
}
else
{
ob_start();
try
{
Core::execute(Core::$path_info);
}
catch (Exception $e)
{
$code = $e->getCode();
if (404===$code || E_PAGE_NOT_FOUND===$code)
{
Core::show_404($e->getMessage());
}
elseif (500===$code)
{
Core::show_500($e->getMessage());
}
else
{
Core::show_500($e);
}
}
Core::$output = ob_get_clean();
}
}