This document is for CakePHP's development version, which can be significantly different from previous releases.
You may want to read current stable release documentation instead.

Page Contents

The Pages Controller

CakePHP’s official skeleton app ships with a default controller PagesController.php. This is a simple and optional controller for serving up static content. The home page you see after installation is generated using this controller and the view file templates/Pages/home.php. If you make the view file templates/Pages/about_us.php you can access it using the URL http://example.com/pages/about_us. You are free to modify the Pages Controller to meet your needs.

When you “bake” an app using Composer the Pages Controller is created in your src/Controller/ folder.