Print URL в виде YII2
$currentUrl = Yii::$app->request->url; //gives current URL
Code Phantom
$currentUrl = Yii::$app->request->url; //gives current URL