title: Yii Overwrite createUrl but keep parameters
body: <p>I am extending and overwriting the createUrl method to make pretty URLs.</p>
  
  <p>Here is a snippet:</p>
  
  <pre><code>public function createUrl($manager, $route, $params, $ampersand) {
          if($route == 'widget/view'){
              $widget = Widget::model()-&gt;findByPk($params['id']);
              return 'widget/' . $params['id'] . '/' . SEOUrlRule::slug($widget-&gt;title);
          }
  }
  </code></pre>
  
  <p>Lots of things don't matter much here. And I removed irrelevant parts.</p>
  
  <p>It works fine. However, sometimes the method may be called with additional parameters such as an anchor tag, or GET parameters to put at the end of the URL.</p>
  
  <p>Using my method, these parameters will be lost. To pass them forward in the new URL, do I have to re-do whatever the original createUrl method did manually? Or is there a nice object oriented way to pass the job along to a competent method?</p>