current() public static méthode

Return the current URL.
public static current ( boolean $addAuth = false ) : string
$addAuth boolean
Résultat string
Exemple #1
0
 public function testEmpty()
 {
     isSame(null, Url::root());
     isSame(null, Url::path());
     isSame(null, Url::current());
 }
Exemple #2
0
 /**
  * @return string
  */
 public function getUri()
 {
     return Url::current();
 }