Joomla! Programmierung/Framework/JURI/current

Aus Joomla! Dokumentation
Wechseln zu: Navigation, Suche

JURI/current gibt die aktuelle URI des Requests ohne die Teile query und fragment zurück.

Inhaltsverzeichnis

[Bearbeiten] Syntax

current( )
  • @return string
  • @since Joomla 1.5

[Bearbeiten] Beispiel

echo 'Die aktuelle Joomla! URI ist: '.JURI::current();

Ausgabe

Die aktuelle Joomla! URI ist: http://localhost/joomla/index.php

[Bearbeiten] Siehe auch

[Bearbeiten] Quellcode

JURI::current in Joomla! 2.5.4

Folder blue.png libraries

  • Folder red.png joomla
    • Folder green.png environment
      • File php.png uri.php
  1. public static function current()
  2. {
  3. // Get the current URL.
  4. if (empty(self::$current))
  5. {
  6. $uri = self::getInstance();
  7. self::$current = $uri->toString(array('scheme', 'host', 'port', 'path'));
  8. }
  9.  
  10. return self::$current;
  11. }
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Sonstiges
Team Navigation
Werkzeuge