getBaseURL() public method

For example: simplesaml/ The path will always end with a '/' and never have a leading slash.
Deprecation: This method will be removed in SimpleSAMLphp 2.0. Please use getBasePath() instead.
public getBaseURL ( ) : string
return string The absolute path relative to the root of the website.
Esempio n. 1
0
 /**
  * Constructor
  *
  * @param SimpleSAML_Configuration $configuration Configuration object
  * @param string                   $template Which template file to load
  * @param string|null              $defaultDictionary The default dictionary where tags will come from.
  */
 public function __construct(SimpleSAML_Configuration $configuration, $template, $defaultDictionary = null)
 {
     $this->configuration = $configuration;
     $this->template = $template;
     $this->data['baseurlpath'] = $this->configuration->getBaseURL();
     $this->translator = new SimpleSAML\Locale\Translate($configuration, $defaultDictionary);
 }