public function route($absolute = false, $domain = false)
    {
        return ($absolute ? $this->rootUrl($domain) : '') . '/' . implode('/', $this->paths);
    }
public function route($absolute = false, $domain = false)
    {
        return ($absolute ? $this->rootUrl($domain) : '') . '/' . implode('/', $this->paths);
    }
public function route ( $ absolute = false , $ domain = false ) { return ( $ absolute ? $ this -> rootUrl ( $ domain ) : '' ) . '/' . implode ( '/' , $ this -> paths ) ; }
Return route to the current URI. By default route doesn't include base path.

@param bool $absolute True to include full path.
@param bool $domain True to include domain. Works only if first parameter is also true.

@return string
Return route to the current URI . By default route doesn t include base path .