title: How to replace URL " " by "-" or "_"?
body: <p>In YII
  If there is blank space in title which is being used for url, then by default blank spaces are replaced by "+" sign. Something like this:</p>
  
  <blockquote>
    <p>www.domain.com/event/view/id/<strong>Dj+Robag+Ruhme</strong></p>
  </blockquote>
  
  <p>What I want to do is, I want to replace "+" sign by "-" (dash sign) or by "_" (underscore). Something like this:</p>
  
  <blockquote>
    <p>www.domain.com/event/view/id/<strong>Dj-Robag-Ruhme</strong></p>
  </blockquote>
  
  <p>or</p>
  
  <blockquote>
    <p>www.domain.com/event/view/id/<strong>Dj_Robag_Ruhme</strong></p>
  </blockquote>
  
  <p>Right now my urlManager is:</p>
  
  <pre><code>'urlManager'=&gt;array(
      'urlFormat'=&gt;'path',
      'showScriptName'=&gt;false,
      'caseSensitive'=&gt;false,
      'rules'=&gt;array(
          //'&lt;controller:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/view',
          //'&lt;controller:\w+&gt;/&lt;action:\w+&gt;/&lt;id:\d+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;',
          //'&lt;controller:\w+&gt;/&lt;action:\w+&gt;'=&gt;'&lt;controller&gt;/&lt;action&gt;',
          ),
  ),
  </code></pre>