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.

Goldilocks and the three bears

It's the one about the girl with the blond hair. She goes to a house and eats all the porridge. You remember.

Back to stories