protected function loadFromUri()
    {
        if ( ! $this->uriPosition) {
            return false;
        }

        $url = Yii::$app->request->getAbsoluteUrl();
        $parse = parse_url($url);
        if ( ! empty($parse)) {
            $path = explode('/', trim($parse['path']), $this->uriPosition + 1);
            is_string($path) and $path = [$path];
            if (isset($parse[$this->uriPosition - 1])) {
                return $parse[0];
            }
        }

        return false;
    }
protected function loadFromUri()
    {
        if ( ! $this->uriPosition) {
            return false;
        }

        $url = Yii::$app->request->getAbsoluteUrl();
        $parse = parse_url($url);
        if ( ! empty($parse)) {
            $path = explode('/', trim($parse['path']), $this->uriPosition + 1);
            is_string($path) and $path = [$path];
            if (isset($parse[$this->uriPosition - 1])) {
                return $parse[0];
            }
        }

        return false;
    }
protected function loadFromUri ( ) { if ( ! $ this -> uriPosition ) { return false ; } $ url = Yii :: $ app -> request -> getAbsoluteUrl ( ) ; $ parse = parse_url ( $ url ) ; if ( ! empty ( $ parse ) ) { $ path = explode ( '/' , trim ( $ parse [ 'path' ] ) , $ this -> uriPosition + 1 ) ; is_string ( $ path ) and $ path = [ $ path ] ; if ( isset ( $ parse [ $ this -> uriPosition - 1 ] ) ) { return $ parse [ 0 ] ; } } return false ; }
Load language from uri position.

@return bool
Load language from uri position .