Answer Posted / Gulshan Arya
To get the current URL in Yii2, you can use the `yiihelpersUrl::current()` function or the `url` property of the current view instance, such as: `echo Yii::$app->urlManager->baseUrl;`
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers