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
To get the absolute current request url (exactly as seen in the address bar, with GET params and http://) I found that the following works well:
Yii::app()->request->hostInfo . Yii::app()->request->url