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 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.