Demonstration
Extra-pretty URLs with slugs
The "read" method in the Stories controller uses Cake's find function to get the id of the entry in the database from the slug (word) we provided in the URL. Then it uses the id to query the database again and returns the data we really want.
Hanzel and Gretel
Some kids got lost in the woods, followed a trail of sweets, and ended up at an edible house.