JBZoo\Utils\Url::current PHP 메소드

current() 공개 정적인 메소드

Return the current URL.
public static current ( boolean $addAuth = false ) : string
$addAuth boolean
리턴 string
    public static function current($addAuth = false)
    {
        $current = (string) self::root($addAuth) . (string) self::path();
        return $current ? $current : null;
    }

Usage Example

예제 #1
0
파일: UrlTest.php 프로젝트: jbzoo/utils
 public function testEmpty()
 {
     isSame(null, Url::root());
     isSame(null, Url::path());
     isSame(null, Url::current());
 }
All Usage Examples Of JBZoo\Utils\Url::current