current() public static method

Return the current URL.
public static current ( boolean $addAuth = false ) : string
$addAuth boolean
return string
コード例 #1
0
ファイル: UrlTest.php プロジェクト: jbzoo/utils
 public function testEmpty()
 {
     isSame(null, Url::root());
     isSame(null, Url::path());
     isSame(null, Url::current());
 }
コード例 #2
0
ファイル: AbstractRequest.php プロジェクト: JBZoo/CrossCMS
 /**
  * @return string
  */
 public function getUri()
 {
     return Url::current();
 }