/** * Sets the full base URL that will be used as a prefix for generating * fully qualified URLs for this application. If no parameters are passed, * the currently configured value is returned. * * ## Note: * * If you change the configuration value ``App.fullBaseUrl`` during runtime * and expect the router to produce links using the new setting, you are * required to call this method passing such value again. * * @param string $base the prefix for URLs generated containing the domain. * For example: ``http://example.com`` * @return string */ public static function fullBaseUrl($base = null) { if ($base !== null) { self::$_fullBaseUrl = $base; Configure::write('App.fullBaseUrl', $base); } if (empty(self::$_fullBaseUrl)) { self::$_fullBaseUrl = Configure::read('App.fullBaseUrl'); } return self::$_fullBaseUrl; }