Beispiel #1
0
 /**
  * Set the base URL. This is the URL used when converting relative urls to absolute paths.
  *
  * @param string|array $baseUrl
  */
 public static function setDefaultBaseUrl($baseUrl)
 {
     self::$defaultBaseUrl = is_array($baseUrl) ? $baseUrl : self::parse($baseUrl);
     // Add default components
     self::$defaultBaseUrl += array('scheme' => '', 'user' => '', 'pass' => '', 'host' => '', 'port' => '', 'path' => '');
 }