public static function getBaseUrl()
    {
        if (empty(self::$base) && defined('BASE_URL')) {
            self::$base = BASE_URL;
            if (!preg_match("/\/$/", self::$base)) {
                self::$base .= '/';
            }
        }

        return self::$base;
    }
public static function getBaseUrl()
    {
        if (empty(self::$base) && defined('BASE_URL')) {
            self::$base = BASE_URL;
            if (!preg_match("/\/$/", self::$base)) {
                self::$base .= '/';
            }
        }

        return self::$base;
    }
public static function getBaseUrl ( ) { if ( empty ( self :: $ base ) && defined ( 'BASE_URL' ) ) { self :: $ base = BASE_URL ; if ( ! preg_match ( "/\/$/" , self :: $ base ) ) { self :: $ base .= '/' ; } } return self :: $ base ; }
get the project base url

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@return string
get the project base url