Answers for "yii2 current url"

2

yii current url

// Yii 1
Yii::app()->request->url

// Yii 2
Yii::$app->request->url
Posted by: Guest on July-29-2020
1

print url in view yii2

$currentUrl = Yii::$app->request->url; //gives current URL
Posted by: Guest on June-03-2020

Browse Popular Code Answers by Language