public function getUrl()
    {
        if (\Yii::$app === null || $this->getIsConsoleRequest()) {
            return null;
        }

        return \Yii::$app->getRequest()->getAbsoluteUrl();
    }
public function getUrl()
    {
        if (\Yii::$app === null || $this->getIsConsoleRequest()) {
            return null;
        }

        return \Yii::$app->getRequest()->getAbsoluteUrl();
    }
public function getUrl ( ) { if ( \ Yii :: $ app === null || $ this -> getIsConsoleRequest ( ) ) { return null ; } return \ Yii :: $ app -> getRequest ( ) -> getAbsoluteUrl ( ) ; }
Returns the current absolute URL.
@return null|string absolute URL, `null` if not available.
Returns the current absolute URL .