title: Fetching data from database in CakePHP Routes
body: <p>I have a URL in my CakePHP application that looks like <a href="http://www.example.com/category/1" rel="nofollow">http://www.example.com/category/1</a>. Where category is the name of an action in the Websites controller. I have removed the controller name, using the CakePHP Routes file. And 1 is the id of the Food category, whose records need to be fetched from the database.</p>
  
  <p>But my client requires me to have the url as example.com/category/Food, without the numeric id for better SEO.</p>
  
  <p>My question is that can CakePHP Routes fetch the name of the category id from the database and show it in the url? If yes, then kindly guide me to achieve this, as I am badly stuck on this. </p>
  
  <p>Any help will be greatly appreciated.</p>