/** * Renders a exception/error template * * @param array $args */ protected static final function renderException($args) { Buffer::clear(true); /** * Set header status code */ Header::set(500, false); /** * Reset all to the default */ $activeProject = ProjectManager::getActiveProject(); if ($activeProject) { $activeProject->setActive(false); } Locale::set(DEFAULT_LOCALE); /** * Render with the exception layout */ self::renderTemplate(EXCEPTION_LAYOUT, $args, true); exit; }
/** * Simply sets the default locale */ protected final function initDefaultLocale() { Locale::set(DEFAULT_LOCALE); }