How, in Yii, to get the current page\'s URL. For example:
http://www.yoursite.com/your_yii_application/?lg=pl&id=15
but excluding the
For Yii2: This should be safer Yii::$app->request->absoluteUrl rather than Yii::$app->request->url
Yii::$app->request->absoluteUrl
Yii::$app->request->url