/** * get the base url * @return string $baseUrl */ public static function getBaseUrl() { if (!self::$baseUrl) { $uri = new Zend_Controller_Request_Http(); self::$baseUrl = $uri->getScheme() . '://' . $uri->getHttpHost() . $uri->getBaseUrl(); } return self::$baseUrl; }