title: Using slugs in codeigniter
body: <p>I have heard of people using slugs for generating clean urls. I have no idea how it works.
  Currently i have a codeigniter site which generates url's like this</p>
  
  <pre><code>www.site.com/index.php/blog/view/7
  </code></pre>
  
  <p>From what i understand by maintaining a slug field it is possible to achieve urls like</p>
  
  <pre><code>www.site.com/index.php/blog/view/once-upon-a-time
  </code></pre>
  
  <p>How is this done? Especially in reference to codeigniter?</p>