Imprimir URL em vista Yii2
$currentUrl = Yii::$app->request->url; //gives current URL
Code Phantom
$currentUrl = Yii::$app->request->url; //gives current URL