JBZoo\Utils\Url::current PHP Method

current() public static method

Return the current URL.
public static current ( boolean $addAuth = false ) : string
$addAuth boolean
return 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