# Welcome

::: warning Unsupported Version
CakePHP 2 reached its end of life upstream and is no longer supported by the
CakePHP project. This book is for **pieceofcake2/cakephp**, the Piece of Cake 2
fork that keeps CakePHP 2 applications running on PHP 8. If you are starting a
new project, use [CakePHP 5](https://book.cakephp.org/5/en/) instead.
:::

This is the CakePHP 2 Cookbook, updated for the Piece of Cake 2 fork. See
[Changes from the Original Book](https://pieceofcake2.github.io/docs/appendices/changes-from-the-original-book.md) for what differs from
the original CakePHP 2.x documentation.

The CakePHP cookbook is an openly developed and community editable documentation
project. We hope to maintain a high level of quality, validity and accuracy for
the documentation. Notice the "Edit this page on GitHub" link at the bottom of
each page; it will direct you to the GitHub online editor of the active page,
allowing you to easily contribute any additions, deletions, or corrections to
the documentation. The source of this book is
[pieceofcake2/docs](https://github.com/pieceofcake2/docs).

## Getting Started

### Installation

[Install CakePHP](https://pieceofcake2.github.io/docs/installation.md) with Composer and set up your web server.

### Build a Blog

Get started with the [blog tutorial](https://pieceofcake2.github.io/docs/tutorials-and-examples/blog/blog.md).
You'll learn the basics of CakePHP, and build a basic blog in the process.

### Conventions

Learn about a typical [CakePHP request](https://pieceofcake2.github.io/docs/getting-started/a-typical-cakephp-request.md) and the [conventions](https://pieceofcake2.github.io/docs/getting-started/cakephp-conventions.md) that power CakePHP.

### Controllers

Controllers handle requests and help co-ordinate and prepare
responses for the client. Read more about [Controllers](https://pieceofcake2.github.io/docs/controllers.md).

### Views

Views are the presentation layer in CakePHP. They convert
the data fetched from Models into the output format requested by the
client. Read more about [Views](https://pieceofcake2.github.io/docs/views.md).

### Models

Models are the heart of your application. They handle the validation,
storage and retrieval of your data. Read more about [Models](https://pieceofcake2.github.io/docs/models.md).

## Getting Help

If you're stuck, there are a number of places [you can get help](https://pieceofcake2.github.io/docs/cakephp-overview/where-to-get-help.md).
