title: How to do categories in Codeigniter?
body: <p>I store the categories that a post belongs to in a database and I'd like to use them in the URL. How can I do this dynamically?</p>
  
  <p>For example, I'd like to generate a URL like example.com/action-adventure/post-name.</p>
  
  <p>I'd imagine it would involve routes.php, but I just don't know how to do it dynamically. </p>