Improve this Doc



This version of the documentation is for CakePHP 3.0. Go here for the CakePHP 2.x documentation.

The CakePHP cookbook is an openly developed and community editable documentation project. Notice the “Improve this Doc” button in the upper right-hand corner; it will direct you to the GitHub online editor of the active page, allowing you to contribute any additions, deletions, or corrections to the documentation.

Read the Book Anywhere

Enjoy the CakePHP cookbook almost anywhere. Available as both a PDF and EPUB, you can now read it on more devices, as well as offline.

Getting Help

If you’re stuck, there are a number of places you can get help.

First Steps

Learning a new framework can be intimidating and exciting at the same time. To help you along, we have created a cookbook packed with examples and recipes to get the common tasks completed. If you are new, you should start off with the Quick Start Guide as it will give you a quick tour of what CakePHP has to offer and how it works.

After you’ve finished the Bookmarker Tutorial, you can brush up on the key elements in a CakePHP application:

  • The CakePHP request cycle
  • The conventions that CakePHP uses.
  • Controllers handle requests and co-ordinate your models and the responses your application creates.
  • Views are the presentation layer in your application. They give you powerful tools to create HTML, JSON and the other outputs your application needs.
  • Models are the key ingredient in any application. They handle validation, and domain logic within your application.