/** * Formats and returns the base URL for the application. * @return String The base URL for the application. */ public static function getBaseUrl() { if (UrlFormatter::$baseUrl == NULL) { UrlFormatter::$baseUrl = Settings::getSetting('APPLICATION_URL') . 'index.php'; } return UrlFormatter::$baseUrl; }