title: Get current URL/URI without some of $_GET variables
body: <p>How, in Yii, to get the current page's URL. For example:</p>
  
  <pre><code>http://www.yoursite.com/your_yii_application/?lg=pl&amp;id=15
  </code></pre>
  
  <p>but excluding the <code>$GET_['lg']</code> (without parsing the string manually)?</p>
  
  <p>I mean, I'm looking for something similar to the <code>Yii::app()-&gt;requestUrl</code> / <code>Chtml::link()</code> methods, for returning URLs minus some of the <code>$_GET</code> variables.</p>
  
  <p><strong>Edit</strong>: Current solution:</p>
  
  <pre><code>unset $_GET['lg'];
  
  echo Yii::app()-&gt;createUrl(
    Yii::app()-&gt;controller-&gt;getId().'/'.Yii::app()-&gt;controller-&gt;getAction()-&gt;getId() , 
    $_GET 
  );
  </code></pre>